mirror of
https://github.com/cnodejs/nodeclub.git
synced 2026-02-01 16:34:28 +00:00
修正自定义 config.auth_cookie_name 导致测试不通过的问题
This commit is contained in:
parent
3d1c5c9752
commit
e6c46ed828
@ -130,7 +130,7 @@ describe('test/controllers/sign.test.js', function () {
|
||||
request.post('/signout')
|
||||
.set('Cookie', config.auth_cookie_name + ':something;')
|
||||
.expect(302, function (err, res) {
|
||||
res.headers['set-cookie'].should.eql([ 'node_club=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT' ]);
|
||||
res.headers['set-cookie'].should.eql([ config.auth_cookie_name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT' ]);
|
||||
done(err);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user