Skip to content

Commit c925c92

Browse files
committedJun 15, 2019
test: fix test case
1 parent 6827330 commit c925c92

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎test/crypto.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Crypto', () => {
3636
try {
3737
pt = Crypto.get(ct)
3838
} catch (err) {
39-
expect(err).to.equal('Encrypted session was tampered with!')
39+
expect(err).to.match(/Encrypted session was tampered with/)
4040
}
4141
done()
4242
})

‎test/legacy-tests.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const makeCookie = function() {
1717
cookie.maxAge = 10000 // This sets cookie.expire through a setter
1818
cookie.secure = true
1919
cookie.domain = 'cow.com'
20+
cookie.sameSite = false
2021

2122
return cookie
2223
}
@@ -756,7 +757,7 @@ exports.test_session_lazy_touch_sync = function(done) {
756757

757758
// Touch the session
758759
store.touch(sid, session, err => {
759-
assert.strictEqual(err, null)
760+
assert.strictEqual(err, undefined)
760761

761762
collection.findOne({ _id: sid }, (err, session2) => {
762763
assert.strictEqual(err, null)

0 commit comments

Comments
 (0)
Please sign in to comment.