Merge pull request #4082 from strongloop/fix/windows-ci

Fix CI build errors on Windows
This commit is contained in:
Miroslav Bajtoš 2018-11-27 08:47:03 +01:00 committed by GitHub
commit e513019ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1501,7 +1501,7 @@ describe('User', function() {
from: 'noreply@myapp.org',
redirect: '/',
protocol: ctx.req.protocol,
host: ctx.req.get('host'),
host: 'lb.io', // use a short hostname to avoid a line break
generateVerificationToken: function(user, cb) {
assert(user);
assert.equal(user.email, 'bar@bat.com');
@ -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();
});