File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 32
32
"mocha" : " ^3.0.2" ,
33
33
"pug" : " ^2.0.0-beta5" ,
34
34
"pug-loader" : " ^2.3.0" ,
35
+ "should" : " ^11.1.0" ,
35
36
"style-loader" : " ~0.13.0" ,
36
37
"supertest" : " ^2.0.0" ,
37
38
"url-loader" : " ~0.5.6" ,
Original file line number Diff line number Diff line change
1
+ var should = require ( "should" ) ;
2
+ var helper = require ( "./helper" ) ;
3
+ var config = require ( "./fixtures/simple-config/webpack.config" ) ;
4
+
5
+ describe ( "Lazy" , function ( ) {
6
+ afterEach ( helper . close ) ;
7
+
8
+ it ( "without filename option it should throw an error" , function ( ) {
9
+ should . throws ( function ( ) {
10
+ helper . start ( config , {
11
+ lazy : true
12
+ } ) ;
13
+ } , / ' f i l e n a m e ' o p t i o n m u s t b e s e t / ) ;
14
+ } ) ;
15
+
16
+ it ( "with filename option should not throw an error" , function ( done ) {
17
+ helper . start ( config , {
18
+ lazy : true ,
19
+ filename : "bundle.js"
20
+ } , done ) ;
21
+ } ) ;
22
+ } ) ;
You can’t perform that action at this time.
0 commit comments