File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ describe('Crypto', () => {
36
36
try {
37
37
pt = Crypto . get ( ct )
38
38
} catch ( err ) {
39
- expect ( err ) . to . equal ( ' Encrypted session was tampered with!' )
39
+ expect ( err ) . to . match ( / E n c r y p t e d s e s s i o n w a s t a m p e r e d w i t h / )
40
40
}
41
41
done ( )
42
42
} )
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const makeCookie = function() {
17
17
cookie . maxAge = 10000 // This sets cookie.expire through a setter
18
18
cookie . secure = true
19
19
cookie . domain = 'cow.com'
20
+ cookie . sameSite = false
20
21
21
22
return cookie
22
23
}
@@ -756,7 +757,7 @@ exports.test_session_lazy_touch_sync = function(done) {
756
757
757
758
// Touch the session
758
759
store . touch ( sid , session , err => {
759
- assert . strictEqual ( err , null )
760
+ assert . strictEqual ( err , undefined )
760
761
761
762
collection . findOne ( { _id : sid } , ( err , session2 ) => {
762
763
assert . strictEqual ( err , null )
You can’t perform that action at this time.
0 commit comments