Skip to content

Commit c190ed7

Browse files
Fixed test, added '0' infront of the '1' for the date of epoch
1 parent dce1ce4 commit c190ed7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const debug = require('debug')('koa-session:context');
44
const Session = require('./session');
55
const util = require('./util');
66

7-
const COOKIE_EXP_DATE = 'Thu, 1 Jan 1970 00:00:00 GMT';
7+
const COOKIE_EXP_DATE = 'Thu, 01 Jan 1970 00:00:00 GMT';
88
const ONE_DAY = 24 * 60 * 60 * 1000;
99

1010
class ContextSession {

test/cookie.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('Koa Session Cookie', () => {
261261

262262
request(app.listen())
263263
.get('/')
264-
.expect('Set-Cookie', /koa:sess=; path=\/; expires=Thu, 1 Jan 1970 00:00:00 GMT/)
264+
.expect('Set-Cookie', /koa:sess=; path=\/; expires=Thu, 01 Jan 1970 00:00:00 GMT/)
265265
.expect('true')
266266
.expect(200, done);
267267
});

0 commit comments

Comments
 (0)