File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 16
16
"type" : " string"
17
17
},
18
18
"filename" : {
19
- "description" : " The filename and path that ExtractTextPlugin will extract to. " ,
19
+ "description" : " The filename and path that ExtractTextPlugin will extract to" ,
20
20
"type" : " string"
21
21
},
22
22
"loader" : {
27
27
"description" : " " ,
28
28
"type" : " string"
29
29
}
30
- },
31
- "required" : [" loader" ]
30
+ }
32
31
}
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ describe("ExtractTextPlugin.extract()", function() {
11
11
} ) ;
12
12
13
13
context ( "json schema validation" , function ( ) {
14
- it ( "throws if an incorrect config is passed in " , function ( ) {
15
- should . throws ( function ( ) {
16
- ExtractTextPlugin . extract ( [ 'style-loader' , ' file.css' ] ) ;
14
+ it ( "does not throw if a filename is specified " , function ( ) {
15
+ should . doesNotThrow ( function ( ) {
16
+ ExtractTextPlugin . extract ( " file.css" ) ;
17
17
} ) ;
18
18
} ) ;
19
19
@@ -23,9 +23,9 @@ describe("ExtractTextPlugin.extract()", function() {
23
23
} ) ;
24
24
} ) ;
25
25
26
- it ( "does not throw if a filename is specified " , function ( ) {
27
- should . doesNotThrow ( function ( ) {
28
- ExtractTextPlugin . extract ( " file.css" ) ;
26
+ it ( "throws if an incorrect config is passed in " , function ( ) {
27
+ should . throws ( function ( ) {
28
+ ExtractTextPlugin . extract ( { style : ' file.css' } ) ;
29
29
} ) ;
30
30
} ) ;
31
31
} ) ;
You can’t perform that action at this time.
0 commit comments