MCPcopy Create free account
hub / github.com/expressjs/session / shouldNotSetSessionInStore

Function shouldNotSetSessionInStore

test/session.js:2706–2718  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

2704}
2705
2706function shouldNotSetSessionInStore(store) {
2707 var _set = store.set
2708 var count = 0
2709
2710 store.set = function set () {
2711 count++
2712 return _set.apply(this, arguments)
2713 }
2714
2715 return function () {
2716 assert.ok(count === 0, 'should not set session in store')
2717 }
2718}
2719
2720function shouldSetCookie (name) {
2721 return function (res) {

Callers 1

session.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected