瀏覽代碼

Use updated error for non-string mentions

sbkwgh 7 年之前
父節點
當前提交
45fff29b0c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/notification.js

+ 1 - 1
test/notification.js

@@ -121,7 +121,7 @@ describe('Notifications', () => {
 				.send({ threadId: 1, content: 'POST 1', mentions: ['adminaccount', 123] })
 				.end((err, res) => {
 					res.should.have.status(400)
-					res.body.errors.should.contain.something.that.deep.equals(Errors.invalidParameterType('mention', 'string'))
+					res.body.errors.should.contain.something.that.has.property('message', 'mentions must be an array of strings');
 
 					done()
 				})