spec: session.defaultSession test case

This commit is contained in:
Cheng Zhao 2016-07-12 22:24:09 +09:00
parent e7666b0448
commit 3ce3004595

View file

@ -35,6 +35,12 @@ describe('session module', function () {
w = null
})
describe('session.defaultSession', function () {
it('returns the default session', function () {
assert.equal(session.defaultSession, session.fromPartition(''))
})
})
describe('session.cookies', function () {
it('should get cookies', function (done) {
var server = http.createServer(function (req, res) {