fix tests by removing only and adding empty func for notification tests

This commit is contained in:
Shpuld Shpuldson 2020-08-19 16:19:36 +03:00
parent 1a8840c7c3
commit a0c17e1fd0
2 changed files with 6 additions and 5 deletions

View File

@ -330,7 +330,7 @@ describe('Statuses module', () => {
const deletion = makeMockStatus({ id: '4', type: 'deletion' }) const deletion = makeMockStatus({ id: '4', type: 'deletion' })
deletion.text = 'Dolus deleted notice {{tag:gs.smuglo.li,2016-11-18:noticeId=1038007:objectType=note}}.' deletion.text = 'Dolus deleted notice {{tag:gs.smuglo.li,2016-11-18:noticeId=1038007:objectType=note}}.'
deletion.uri = 'xxx' deletion.uri = 'xxx'
const newNotificationSideEffects = () => {}
mutations.addNewStatuses(state, { statuses: [status, otherStatus], user }) mutations.addNewStatuses(state, { statuses: [status, otherStatus], user })
mutations.addNewNotifications( mutations.addNewNotifications(
state, state,
@ -342,7 +342,8 @@ describe('Statuses module', () => {
status: otherStatus, status: otherStatus,
action: otherStatus, action: otherStatus,
seen: false seen: false
}] }],
newNotificationSideEffects
}) })
expect(state.notifications.data.length).to.eql(1) expect(state.notifications.data.length).to.eql(1)
@ -356,7 +357,8 @@ describe('Statuses module', () => {
status: mentionedStatus, status: mentionedStatus,
action: mentionedStatus, action: mentionedStatus,
seen: false seen: false
}] }],
newNotificationSideEffects
}) })
mutations.addNewStatuses(state, { statuses: [mentionedStatus], user }) mutations.addNewStatuses(state, { statuses: [mentionedStatus], user })

View File

@ -17,8 +17,7 @@ const message3 = {
created_at: (new Date('2020-07-22T18:45:59.000Z')) created_at: (new Date('2020-07-22T18:45:59.000Z'))
} }
// TODO: only describe('chatService', () => {
describe.only('chatService', () => {
describe('.add', () => { describe('.add', () => {
it("Doesn't add duplicates", () => { it("Doesn't add duplicates", () => {
const chat = chatService.empty() const chat = chatService.empty()