@@ -4,7 +4,7 @@ const should = require("should");
44const webpack = require ( "../lib/webpack" ) ;
55const WebpackOptionsValidationError = require ( "../lib/WebpackOptionsValidationError" ) ;
66
7- describe ( "Validation" , function ( ) {
7+ describe ( "Validation" , ( ) => {
88 const testCases = [ {
99 name : "undefined configuration" ,
1010 config : undefined ,
@@ -140,7 +140,7 @@ describe("Validation", function() {
140140 name : "additional key on root" ,
141141 config : {
142142 entry : "a" ,
143- postcss : function ( ) { }
143+ postcss : ( ) => { }
144144 } ,
145145 message : [
146146 " - configuration has an unknown property 'postcss'. These properties are valid:" ,
@@ -175,8 +175,8 @@ describe("Validation", function() {
175175 " * configuration.devtool should be false"
176176 ]
177177 } ] ;
178- testCases . forEach ( function ( testCase ) {
179- it ( "should fail validation for " + testCase . name , function ( ) {
178+ testCases . forEach ( ( testCase ) => {
179+ it ( "should fail validation for " + testCase . name , ( ) => {
180180 try {
181181 webpack ( testCase . config ) ;
182182 } catch ( e ) {
@@ -187,6 +187,6 @@ describe("Validation", function() {
187187 return ;
188188 }
189189 throw new Error ( "Validation didn't fail" ) ;
190- } )
190+ } ) ;
191191 } ) ;
192192} ) ;
0 commit comments