File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /* globals describe it */
12var should = require ( "should" ) ;
23var path = require ( "path" ) ;
34var fs = require ( "fs" ) ;
@@ -8,10 +9,6 @@ var checkArrayExpectation = require("./checkArrayExpectation");
89var Stats = require ( "../lib/Stats" ) ;
910var webpack = require ( "../lib/webpack" ) ;
1011
11- function getConfig ( testDirectory ) {
12- return require ( path . join ( testDirectory , "webpack.config.js" ) ) ;
13- }
14-
1512describe ( "ConfigTestCases" , function ( ) {
1613 var casesPath = path . join ( __dirname , "configCases" ) ;
1714 var categories = fs . readdirSync ( casesPath ) ;
@@ -24,8 +21,7 @@ describe("ConfigTestCases", function() {
2421 } ) . sort ( ) . filter ( function ( testName ) {
2522 var testDirectory = path . join ( casesPath , cat , testName ) ;
2623 var filterPath = path . join ( testDirectory , "test.filter.js" ) ;
27- var config = getConfig ( testDirectory ) ;
28- if ( fs . existsSync ( filterPath ) && ! require ( filterPath ) ( config ) ) {
24+ if ( fs . existsSync ( filterPath ) && ! require ( filterPath ) ( ) ) {
2925 describe . skip ( testName , function ( ) {
3026 it ( 'filtered' ) ;
3127 } ) ;
You can’t perform that action at this time.
0 commit comments