|
@@ -109,8 +109,8 @@ describe('Notifications', () => {
|
|
|
res.body.should.have.property('Notifications')
|
|
|
res.body.Notifications.should.have.property('length', 2)
|
|
|
res.body.Notifications.should.contain.something.that.has.deep.property('interacted', false)
|
|
|
- res.body.Notifications.should.contain.something.that.has.deep.property('MentionNotification.User.username', 'useraccount')
|
|
|
- res.body.Notifications.should.contain.something.that.has.deep.property('MentionNotification.Post.content', '<p>POST 1</p>\n')
|
|
|
+ res.body.Notifications.should.contain.something.that.has.deep.property('PostNotification.User.username', 'useraccount')
|
|
|
+ res.body.Notifications.should.contain.something.that.has.deep.property('PostNotification.Post.content', '<p>POST 1</p>\n')
|
|
|
res.body.should.have.property('unreadCount', 2)
|
|
|
})
|
|
|
|
|
@@ -147,8 +147,8 @@ describe('Notifications', () => {
|
|
|
res.body.should.have.property('Notifications')
|
|
|
res.body.Notifications.should.have.property('length', 2)
|
|
|
res.body.Notifications.should.contain.something.that.has.deep.property('interacted', false)
|
|
|
- res.body.Notifications.should.contain.something.that.has.deep.property('MentionNotification.User.username', 'useraccount')
|
|
|
- res.body.Notifications.should.contain.something.that.has.deep.property('MentionNotification.Post.content', '<p>POST 1</p>\n')
|
|
|
+ res.body.Notifications.should.contain.something.that.has.deep.property('PostNotification.User.username', 'useraccount')
|
|
|
+ res.body.Notifications.should.contain.something.that.has.deep.property('PostNotification.Post.content', '<p>POST 1</p>\n')
|
|
|
res.body.should.have.property('unreadCount', 0)
|
|
|
|
|
|
})
|
|
@@ -163,8 +163,8 @@ describe('Notifications', () => {
|
|
|
res.body.should.have.property('Notifications')
|
|
|
res.body.Notifications.should.have.property('length', 2)
|
|
|
res.body.Notifications.should.contain.something.that.has.deep.property('interacted', false)
|
|
|
- res.body.Notifications.should.contain.something.that.has.deep.property('MentionNotification.User.username', 'useraccount')
|
|
|
- res.body.Notifications.should.contain.something.that.has.deep.property('MentionNotification.Post.content', '<p>POST 1</p>\n')
|
|
|
+ res.body.Notifications.should.contain.something.that.has.deep.property('PostNotification.User.username', 'useraccount')
|
|
|
+ res.body.Notifications.should.contain.something.that.has.deep.property('PostNotification.Post.content', '<p>POST 1</p>\n')
|
|
|
res.body.should.have.property('unreadCount', 0)
|
|
|
})
|
|
|
})
|