Skip to content

Commit

Permalink
feat(jest): 100% code coverage for store/media/actions.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
drepram committed Feb 14, 2022
1 parent 06aa87e commit 30b3f57
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions store/media/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,21 @@ describe('actions.default.handler', () => {
expect(result).toMatchSnapshot()
})
})
describe('actions.default.acceptCall', () => {
test('0', async () => {
const commit = jest.fn()

await actions.default.acceptCall({ commit })

expect(commit).toHaveBeenCalledWith('toggleMediaIncomingCall', '')
})
})
describe('actions.default.denyCall', () => {
test('0', async () => {
const commit = jest.fn()

await actions.default.denyCall({ commit })

expect(commit).toHaveBeenCalledWith('toggleMediaIncomingCall', '')
})
})

0 comments on commit 30b3f57

Please sign in to comment.