(store)
| 2704 | } |
| 2705 | |
| 2706 | function 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 | |
| 2720 | function shouldSetCookie (name) { |
| 2721 | return function (res) { |