Skip to content

Commit

Permalink
unit test for actions
Browse files Browse the repository at this point in the history
Co-authored-by: Louis Disen [email protected]
  • Loading branch information
fraisai committed Sep 18, 2024
1 parent 60ef865 commit d0a4669
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/__tests__/unit/actions.unit.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use-strict';
import actions from '../../src/constants/actions';

describe('Check actions object', () => {
const testActions = {
CONNECTION: 'CONNECTION',
OFFER: 'OFFER',
ANSWER: 'ANSWER',
LOGIN: 'LOGIN',
ICECANDIDATE: 'ICECANDIDATE',
LEAVE: 'LEAVE',
CREATE_ROOM: 'CREATE_ROOM',
JOIN_ROOM: 'JOIN_ROOM'
};

test('All the properties are correct', () => {
expect(actions).toMatchObject(testActions);
});

});

0 comments on commit d0a4669

Please sign in to comment.