Skip to content

Commit a3b31f6

Browse files
committed
test: move test to describe
1 parent 8ab760f commit a3b31f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/session.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ describe('session()', function(){
3535
.expect(200, done)
3636
})
3737

38-
it('should reject without secret', function(){
39-
assert.throws(session.bind(null, { secret: undefined }), /secret.*required/)
40-
})
41-
4238
it('should create a new session', function (done) {
4339
var store = new session.MemoryStore()
4440
var server = createServer({ store: store }, function (req, res) {
@@ -1182,6 +1178,10 @@ describe('session()', function(){
11821178
});
11831179

11841180
describe('secret option', function () {
1181+
it('should reject without secret', function(){
1182+
assert.throws(session.bind(null, { secret: undefined }), /secret.*required/)
1183+
})
1184+
11851185
it('should reject empty arrays', function () {
11861186
assert.throws(createServer.bind(null, { secret: [] }), /secret option array/);
11871187
})

0 commit comments

Comments
 (0)