このコミットが含まれているのは:
Henry Jameson 2023-11-19 17:27:51 +02:00
コミット cdc0959135
1個のファイルの変更31行の追加35行の削除

ファイルの表示

@ -5,26 +5,24 @@ describe('NotificationUtils', () => {
it('should return sorted notifications with configured types', () => { it('should return sorted notifications with configured types', () => {
const store = { const store = {
state: { state: {
statuses: { notifications: {
notifications: { data: [
data: [ {
{ id: 1,
id: 1, action: { id: '1' },
action: { id: '1' }, type: 'like'
type: 'like' },
}, {
{ id: 2,
id: 2, action: { id: '2' },
action: { id: '2' }, type: 'mention'
type: 'mention' },
}, {
{ id: 3,
id: 3, action: { id: '3' },
action: { id: '3' }, type: 'repeat'
type: 'repeat' }
} ]
]
}
}, },
config: { config: {
notificationVisibility: { notificationVisibility: {
@ -55,21 +53,19 @@ describe('NotificationUtils', () => {
it('should return only notifications not marked as seen', () => { it('should return only notifications not marked as seen', () => {
const store = { const store = {
state: { state: {
statuses: { notifications: {
notifications: { data: [
data: [ {
{ action: { id: '1' },
action: { id: '1' }, type: 'like',
type: 'like', seen: false
seen: false },
}, {
{ action: { id: '2' },
action: { id: '2' }, type: 'mention',
type: 'mention', seen: true
seen: true }
} ]
]
}
}, },
config: { config: {
notificationVisibility: { notificationVisibility: {