test: fix User test for custom token generator
This commit is contained in:
parent
2a78d953d9
commit
9647294f7c
|
@ -1501,7 +1501,7 @@ describe('User', function() {
|
||||||
from: 'noreply@myapp.org',
|
from: 'noreply@myapp.org',
|
||||||
redirect: '/',
|
redirect: '/',
|
||||||
protocol: ctx.req.protocol,
|
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) {
|
generateVerificationToken: function(user, cb) {
|
||||||
assert(user);
|
assert(user);
|
||||||
assert.equal(user.email, 'bar@bat.com');
|
assert.equal(user.email, 'bar@bat.com');
|
||||||
|
|
Loading…
Reference in New Issue