mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #1816 from hswolff/fix-admin-session-test
Fixes admin session cookie test
This commit is contained in:
commit
029a01f3dd
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ describe('Admin Routing', function () {
|
|||
|
||||
var expires;
|
||||
// Session should expire 12 hours after the time in the date header
|
||||
expires = moment(res.headers.date).add('Hours', 12).format("ddd, DD MMM YYYY HH:mm");
|
||||
expires = moment.utc(res.headers.date).add('Hours', 12).format("ddd, DD MMM YYYY HH:mm");
|
||||
expires = new RegExp("Expires=" + expires);
|
||||
|
||||
res.headers['set-cookie'].should.match(expires);
|
||||
|
|
Loading…
Add table
Reference in a new issue