test: improve assertion error messages

This commit is contained in:
Miroslav Bajtoš 2018-11-26 11:07:21 +01:00
parent 6638992b99
commit 2a78d953d9
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
1 changed files with 1 additions and 1 deletions

View File

@ -1520,7 +1520,7 @@ describe('User', function() {
assert(result.token);
assert.equal(result.token, 'token-123456');
var msg = result.email.response.toString('utf-8');
assert(~msg.indexOf('token-123456'));
expect(msg).to.contain('token-123456');
done();
});