@@ -10,8 +10,8 @@ const {trim} = require('../lib/util');
10
10
const { rebaseToCache} = require ( '../lib/higher-order' ) ;
11
11
const {
12
12
all, testDefault, testSilent, testKeepQuery, testAbsolute, testAttempts, testEngineFailInitialisation,
13
- testEngineFailProcessing, testIncludeRoot, testFail, testNonFunctionJoin , testWrongArityJoin , testNonStringRoot ,
14
- testNonExistentRoot
13
+ testEngineFailProcessing, testIncludeRoot, testFail, testNonFunctionJoin1 , testWrongArityJoin1 , testNonFunctionJoin2 ,
14
+ testWrongArityJoin2 , testNonStringRoot , testNonExistentRoot
15
15
} = require ( './common/test' ) ;
16
16
const { buildDevNormal, buildProdNormal} = require ( './common/exec' ) ;
17
17
const { assertCssContent} = require ( '../lib/assert' ) ;
@@ -246,19 +246,35 @@ module.exports = test(
246
246
)
247
247
)
248
248
) ,
249
- testNonFunctionJoin (
249
+ testNonFunctionJoin1 (
250
250
all ( testDefault , testSilent ) (
251
251
all ( buildDevNormal , buildProdNormal ) (
252
252
assertWebpackNotOk ,
253
253
assertMisconfigError ( '"join" option must be a Function' )
254
254
)
255
255
)
256
256
) ,
257
- testWrongArityJoin (
257
+ testWrongArityJoin1 (
258
258
all ( testDefault , testSilent ) (
259
259
all ( buildDevNormal , buildProdNormal ) (
260
260
assertWebpackNotOk ,
261
- assertMisconfigError ( '"join" Function must take exactly 1 arguments (options hash)' )
261
+ assertMisconfigError ( '"join" Function must take exactly 2 arguments (options, loader)' )
262
+ )
263
+ )
264
+ ) ,
265
+ testNonFunctionJoin2 (
266
+ all ( testDefault , testSilent ) (
267
+ all ( buildDevNormal , buildProdNormal ) (
268
+ assertWebpackNotOk ,
269
+ assertMisconfigError ( '"join" option must itself return a Function when it is called' )
270
+ )
271
+ )
272
+ ) ,
273
+ testWrongArityJoin2 (
274
+ all ( testDefault , testSilent ) (
275
+ all ( buildDevNormal , buildProdNormal ) (
276
+ assertWebpackNotOk ,
277
+ assertMisconfigError ( '"join" Function must create a function that takes exactly 1 arguments (item)' )
262
278
)
263
279
)
264
280
) ,
0 commit comments