aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs/services/notification_utils/notification_utils.spec.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-01-11 03:38:23 +0300
committerHenry Jameson <me@hjkos.com>2019-01-11 03:38:23 +0300
commitb18e27c6d4d2b3d681be8dd81dafcdfeaf20fb35 (patch)
tree7ed2f8c40a641941c048f4e4bc7ddf592c8fe4ef /test/unit/specs/services/notification_utils/notification_utils.spec.js
parent48e811e6edc774affa3526e7a25df6bb07597c9d (diff)
fix tests, removed one unused function, fix real problem that tests helped to
surface
Diffstat (limited to 'test/unit/specs/services/notification_utils/notification_utils.spec.js')
-rw-r--r--test/unit/specs/services/notification_utils/notification_utils.spec.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/specs/services/notification_utils/notification_utils.spec.js b/test/unit/specs/services/notification_utils/notification_utils.spec.js
index c44b8c9e..e945459e 100644
--- a/test/unit/specs/services/notification_utils/notification_utils.spec.js
+++ b/test/unit/specs/services/notification_utils/notification_utils.spec.js
@@ -9,15 +9,15 @@ describe('NotificationUtils', () => {
notifications: {
data: [
{
- action: { id: 1 },
+ action: { id: '1' },
type: 'like'
},
{
- action: { id: 2 },
+ action: { id: '2' },
type: 'mention'
},
{
- action: { id: 3 },
+ action: { id: '3' },
type: 'repeat'
}
]
@@ -34,11 +34,11 @@ describe('NotificationUtils', () => {
}
const expected = [
{
- action: { id: 3 },
+ action: { id: '3' },
type: 'repeat'
},
{
- action: { id: 1 },
+ action: { id: '1' },
type: 'like'
}
]
@@ -54,12 +54,12 @@ describe('NotificationUtils', () => {
notifications: {
data: [
{
- action: { id: 1 },
+ action: { id: '1' },
type: 'like',
seen: false
},
{
- action: { id: 2 },
+ action: { id: '2' },
type: 'mention',
seen: true
}
@@ -77,7 +77,7 @@ describe('NotificationUtils', () => {
}
const expected = [
{
- action: { id: 1 },
+ action: { id: '1' },
type: 'like',
seen: false
}