File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ var checkArrayExpectation = require("./checkArrayExpectation");
77
88var webpack = require ( "../lib/webpack" ) ;
99
10+ var harmony = ( + process . versions . node . split ( "." ) [ 0 ] ) >= 4 ;
11+
1012describe ( "TestCases" , function ( ) {
1113 var casesPath = path . join ( __dirname , "cases" ) ;
1214 var categories = fs . readdirSync ( casesPath ) ;
@@ -114,7 +116,8 @@ describe("TestCases", function() {
114116 describe ( category . name , function ( ) {
115117 this . timeout ( 10000 ) ;
116118 category . tests . filter ( function ( test ) {
117- return ! config . excludeNominimize || test . indexOf ( "nominimize" ) < 0 ;
119+ return ( ! config . excludeNominimize || test . indexOf ( "nominimize" ) < 0 ) &&
120+ ( ! / ^ e s 6 / . test ( test ) || harmony ) ;
118121 } ) . forEach ( function ( testName ) {
119122 var suite = describe ( testName , function ( ) { } ) ;
120123 it ( testName + " should compile" , function ( done ) {
You can’t perform that action at this time.
0 commit comments