Skip to content

Commit

Permalink
fix: remove some tests for outdated behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Aug 17, 2024
1 parent f1f36fa commit 1717211
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@ const tests = [
return this.client.player.playerControllerAssignRole(player.id, role.data.data.id);
},
}),
new IntegrationTest<SetupGameServerPlayers.ISetupData>({
group,
snapshot: true,
name: 'Assigning the same role twice should fail',
setup: SetupGameServerPlayers.setup,
test: async function () {
const permissions = await this.client.permissionCodesToInputs([PERMISSIONS.MANAGE_GAMESERVERS]);
const role = await this.client.role.roleControllerCreate({
name: 'Test role',
permissions,
});
const player = this.setupData.players[0];
await this.client.player.playerControllerAssignRole(player.id, role.data.data.id);
return this.client.player.playerControllerAssignRole(player.id, role.data.data.id);
},
expectedStatus: 400,
}),
new IntegrationTest<SetupGameServerPlayers.ISetupData>({
group,
snapshot: true,
Expand All @@ -58,27 +41,6 @@ const tests = [
});
},
}),
new IntegrationTest<SetupGameServerPlayers.ISetupData>({
group,
snapshot: true,
name: 'Assigning the same role for same gameserver should fail',
setup: SetupGameServerPlayers.setup,
test: async function () {
const permissions = await this.client.permissionCodesToInputs([PERMISSIONS.MANAGE_GAMESERVERS]);
const role = await this.client.role.roleControllerCreate({
name: 'Test role',
permissions,
});
const player = this.setupData.players[0];
await this.client.player.playerControllerAssignRole(player.id, role.data.data.id, {
gameServerId: this.setupData.gameServer1.id,
});
return this.client.player.playerControllerAssignRole(player.id, role.data.data.id, {
gameServerId: this.setupData.gameServer1.id,
});
},
expectedStatus: 400,
}),
new IntegrationTest<SetupGameServerPlayers.ISetupData>({
group,
snapshot: true,
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 1717211

Please sign in to comment.