mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
fix expectations, remove outdated specs
This commit is contained in:
@@ -67,7 +67,7 @@ describe('Create page', function () {
|
||||
.toEqual('Test name');
|
||||
});
|
||||
|
||||
it('should successfully update custom role information after creating it', () => {
|
||||
it('should successstartabley update custom role information after creating it', () => {
|
||||
document.getElementById('role-category-custom').click();
|
||||
document.getElementById('custom-role-btn').click();
|
||||
document.getElementById('role-name').value = 'Test name';
|
||||
|
||||
@@ -69,18 +69,6 @@ describe('game page', () => {
|
||||
expect(document.getElementById('current-info-message').innerText).toEqual('Jane joined!');
|
||||
});
|
||||
|
||||
it('should activate the start button for the moderator when the game is full', () => {
|
||||
expect(document.getElementById('start-game-button').classList.contains('disabled')).toBeTrue();
|
||||
mockSocket.eventHandlers[globals.EVENT_IDS.PLAYER_JOINED]({
|
||||
name: 'Jack',
|
||||
id: '456',
|
||||
userType: globals.USER_TYPES.PLAYER,
|
||||
out: false,
|
||||
revealed: false
|
||||
}, true);
|
||||
expect(document.getElementById('start-game-button').classList.contains('disabled')).toBeFalse();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
document.body.innerHTML = '';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user