Ver Fonte

Update test

sbkwgh há 8 anos atrás
pai
commit
b4b1c2340d
1 ficheiros alterados com 6 adições e 6 exclusões
  1. 6 6
      test/notification.js

+ 6 - 6
test/notification.js

@@ -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)
 		})
 	})