Skip to content

Commit

Permalink
feat(jest): 87% coverage for store/ui/actions (#3377)
Browse files Browse the repository at this point in the history
  • Loading branch information
drepram committed May 31, 2022
1 parent 7303721 commit 685f7e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion store/ui/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ describe('init', () => {
)
expect(result).toBeUndefined()
})
test.skip('sendNotification with initialized mailbox manager', async () => {
test('sendNotification with initialized mailbox manager', async () => {
const TMConstructor = Vue.prototype.$TextileManager
TMConstructor.notificationManager = jest.fn()
TMConstructor.notificationManager.sendNotification = jest
Expand All @@ -522,12 +522,14 @@ describe('init', () => {

const commit = jest.fn()
const rootState = { ...initialRootState }
rootState.textile.activeConversation = 'not_fromAddress'

await actions.default.sendNotification(
{ commit, rootState },
{
message: 'message',
from: 'from',
fromAddress: 'fromAddress',
imageHash: 'imageHash',
title: 'title',
type: 'DEV',
Expand Down

0 comments on commit 685f7e0

Please sign in to comment.