more test fixes
This commit is contained in:
parent
7505c94986
commit
b09efcb5f3
2 changed files with 16 additions and 19 deletions
|
|
@ -53,7 +53,11 @@ describe('NotificationUtils', () => {
|
|||
type: 'like',
|
||||
},
|
||||
]
|
||||
expect(NotificationUtils.filteredNotificationsFromStore(store)).to.eql(
|
||||
expect(NotificationUtils.filteredNotificationsFromStore(store, {
|
||||
mentions: false,
|
||||
likes: true,
|
||||
repeats: true,
|
||||
})).to.eql(
|
||||
expected,
|
||||
)
|
||||
})
|
||||
|
|
@ -77,16 +81,7 @@ describe('NotificationUtils', () => {
|
|||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
getters: {
|
||||
mergedConfig: {
|
||||
notificationVisibility: {
|
||||
likes: true,
|
||||
repeats: true,
|
||||
mentions: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
const expected = [
|
||||
{
|
||||
|
|
@ -95,7 +90,11 @@ describe('NotificationUtils', () => {
|
|||
seen: false,
|
||||
},
|
||||
]
|
||||
expect(NotificationUtils.unseenNotificationsFromStore(store)).to.eql(
|
||||
expect(NotificationUtils.unseenNotificationsFromStore(store, {
|
||||
likes: true,
|
||||
repeats: true,
|
||||
mentions: false,
|
||||
})).to.eql(
|
||||
expected,
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue