aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-08-19 16:19:36 +0300
committerShpuld Shpuldson <shp@cock.li>2020-08-19 16:19:36 +0300
commita0c17e1fd0f63e3c7bf827f415caf94e5d5bf95d (patch)
tree2b511525ffcaa8a68b71ea03f4f031a1a1702d36 /test/unit/specs
parent1a8840c7c3bb698f3984028db5c1b71025d9d6a1 (diff)
fix tests by removing only and adding empty func for notification tests
Diffstat (limited to 'test/unit/specs')
-rw-r--r--test/unit/specs/modules/statuses.spec.js8
-rw-r--r--test/unit/specs/services/chat_service/chat_service.spec.js3
2 files changed, 6 insertions, 5 deletions
diff --git a/test/unit/specs/modules/statuses.spec.js b/test/unit/specs/modules/statuses.spec.js
index fe42e85b..b790b231 100644
--- a/test/unit/specs/modules/statuses.spec.js
+++ b/test/unit/specs/modules/statuses.spec.js
@@ -330,7 +330,7 @@ describe('Statuses module', () => {
const deletion = makeMockStatus({ id: '4', type: 'deletion' })
deletion.text = 'Dolus deleted notice {{tag:gs.smuglo.li,2016-11-18:noticeId=1038007:objectType=note}}.'
deletion.uri = 'xxx'
-
+ const newNotificationSideEffects = () => {}
mutations.addNewStatuses(state, { statuses: [status, otherStatus], user })
mutations.addNewNotifications(
state,
@@ -342,7 +342,8 @@ describe('Statuses module', () => {
status: otherStatus,
action: otherStatus,
seen: false
- }]
+ }],
+ newNotificationSideEffects
})
expect(state.notifications.data.length).to.eql(1)
@@ -356,7 +357,8 @@ describe('Statuses module', () => {
status: mentionedStatus,
action: mentionedStatus,
seen: false
- }]
+ }],
+ newNotificationSideEffects
})
mutations.addNewStatuses(state, { statuses: [mentionedStatus], user })
diff --git a/test/unit/specs/services/chat_service/chat_service.spec.js b/test/unit/specs/services/chat_service/chat_service.spec.js
index 4e8e566b..3ee9839d 100644
--- a/test/unit/specs/services/chat_service/chat_service.spec.js
+++ b/test/unit/specs/services/chat_service/chat_service.spec.js
@@ -17,8 +17,7 @@ const message3 = {
created_at: (new Date('2020-07-22T18:45:59.000Z'))
}
-// TODO: only
-describe.only('chatService', () => {
+describe('chatService', () => {
describe('.add', () => {
it("Doesn't add duplicates", () => {
const chat = chatService.empty()