0
Fork 0
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:
Hannah Wolfe 2014-01-02 18:13:17 -08:00
commit 029a01f3dd

View file

@ -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);