Skip to content

Commit

Permalink
feat(jest): 100% coverage for store/chat/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
drepram committed Mar 7, 2022
1 parent 452af12 commit d488310
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions store/chat/actions.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as actions from '~/store/chat/actions'

describe('actions.default.setChatText', () => {
test('0', async () => {
const commit = jest.fn()
const request = {
userId: 'quidem animi delectus',
value:
'In aut ducimus eius ut. Commodi id numquam et tempora officiis aut neque qui necessitatibus. Asperiores ea temporibus et eum facere illum consequatur.',
}

await actions.default.setChatText({ commit }, request)
expect(commit).toBeCalledWith('chatText', request)
})
})

0 comments on commit d488310

Please sign in to comment.