more test fixes

This commit is contained in:
Henry Jameson 2026-03-06 17:10:56 +02:00
commit b09efcb5f3
2 changed files with 16 additions and 19 deletions

View file

@ -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,
)
})