Revert "notification_utils.js"

This reverts commit 67059addfe64d3cf531a4797a3b9d38174f622e4.
This commit is contained in:
Henry Jameson 2026-02-13 14:34:35 +02:00
commit 76d3ec1b39
2 changed files with 11 additions and 17 deletions

View file

@ -1,21 +1,6 @@
import { createTestingPinia } from '@pinia/testing'
import { useSyncConfigStore } from 'src/stores/sync_config.js'
import * as NotificationUtils from 'src/services/notification_utils/notification_utils.js'
describe('NotificationUtils', () => {
beforeEach(() => {
const store = useSyncConfigStore(createTestingPinia())
store.mergedConfig = {
notificationVisibility: {
likes: true,
repeats: true,
mentions: false,
},
}
})
describe('filteredNotificationsFromStore', () => {
it('should return sorted notifications with configured types', () => {
const store = {
@ -40,6 +25,15 @@ describe('NotificationUtils', () => {
],
},
},
getters: {
mergedConfig: {
notificationVisibility: {
likes: true,
repeats: true,
mentions: false,
},
},
},
}
const expected = [
{