File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ describe('session()', function(){
35
35
. expect ( 200 , done )
36
36
} )
37
37
38
- it ( 'should reject without secret' , function ( ) {
39
- assert . throws ( session . bind ( null , { secret : undefined } ) , / s e c r e t .* r e q u i r e d / )
40
- } )
41
-
42
38
it ( 'should create a new session' , function ( done ) {
43
39
var store = new session . MemoryStore ( )
44
40
var server = createServer ( { store : store } , function ( req , res ) {
@@ -1182,6 +1178,10 @@ describe('session()', function(){
1182
1178
} ) ;
1183
1179
1184
1180
describe ( 'secret option' , function ( ) {
1181
+ it ( 'should reject without secret' , function ( ) {
1182
+ assert . throws ( session . bind ( null , { secret : undefined } ) , / s e c r e t .* r e q u i r e d / )
1183
+ } )
1184
+
1185
1185
it ( 'should reject empty arrays' , function ( ) {
1186
1186
assert . throws ( createServer . bind ( null , { secret : [ ] } ) , / s e c r e t o p t i o n a r r a y / ) ;
1187
1187
} )
You can’t perform that action at this time.
0 commit comments