Explorar o código

Use updated error for non-string mentions

sbkwgh %!s(int64=7) %!d(string=hai) anos
pai
achega
45fff29b0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
 				})