@@ -45,16 +45,6 @@ test.serial("Builder returns single bundle", async (t) => {
4545 const bundleOptions = {
4646 "some" : "option"
4747 } ;
48- const effectiveBundleDefinition = {
49- // Defaults
50- "resolve" : false ,
51- "resolveConditional" : false ,
52- "renderer" : false ,
53- "sort" : true ,
54- "declareRawModules" : false ,
55-
56- "some" : "definition"
57- } ;
5848
5949 const createdBundle = {
6050 name : "BundleName.js" ,
@@ -103,7 +93,7 @@ test.serial("Builder returns single bundle", async (t) => {
10393
10494 t . is ( builder . createBundle . callCount , 1 , "builder.createBundle should be called once" ) ;
10595 t . is ( builder . createBundle . getCall ( 0 ) . args . length , 2 ) ;
106- t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , effectiveBundleDefinition ,
96+ t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , bundleDefinition ,
10797 "builder.createBundle should be called with bundleDefinition" ) ;
10898 t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 1 ] , {
10999 // default bundleOptions
@@ -143,17 +133,6 @@ test.serial("Builder returns multiple bundles", async (t) => {
143133 "some" : "option"
144134 } ;
145135
146- const effectiveBundleDefinition = {
147- // Defaults
148- "resolve" : false ,
149- "resolveConditional" : false ,
150- "renderer" : false ,
151- "sort" : true ,
152- "declareRawModules" : false ,
153-
154- "some" : "definition"
155- } ;
156-
157136 const createdBundles = [
158137 {
159138 name : "BundleName1.js" ,
@@ -226,7 +205,7 @@ test.serial("Builder returns multiple bundles", async (t) => {
226205
227206 t . is ( builder . createBundle . callCount , 1 , "builder.createBundle should be called once" ) ;
228207 t . is ( builder . createBundle . getCall ( 0 ) . args . length , 2 ) ;
229- t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , effectiveBundleDefinition ,
208+ t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , bundleDefinition ,
230209 "builder.createBundle should be called with bundleDefinition" ) ;
231210 t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 1 ] , {
232211 // default bundleOptions
@@ -268,16 +247,6 @@ test.serial("bundleOptions default (no options passed)", async (t) => {
268247 const bundleDefinition = {
269248 "some" : "definition"
270249 } ;
271- const effectiveBundleDefinition = {
272- // Defaults
273- "resolve" : false ,
274- "resolveConditional" : false ,
275- "renderer" : false ,
276- "sort" : true ,
277- "declareRawModules" : false ,
278-
279- "some" : "definition"
280- } ;
281250
282251 const createdBundle = {
283252 name : "BundleName.js" ,
@@ -325,7 +294,7 @@ test.serial("bundleOptions default (no options passed)", async (t) => {
325294
326295 t . is ( builder . createBundle . callCount , 1 , "builder.createBundle should be called once" ) ;
327296 t . is ( builder . createBundle . getCall ( 0 ) . args . length , 2 ) ;
328- t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , effectiveBundleDefinition ,
297+ t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , bundleDefinition ,
329298 "builder.createBundle should be called with bundleDefinition" ) ;
330299 t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 1 ] , {
331300 // default bundleOptions
@@ -361,17 +330,6 @@ test.serial("bundleOptions default (empty options passed)", async (t) => {
361330 } ;
362331 const bundleOptions = { } ;
363332
364- const effectiveBundleDefinition = {
365- // Defaults
366- "resolve" : false ,
367- "resolveConditional" : false ,
368- "renderer" : false ,
369- "sort" : true ,
370- "declareRawModules" : false ,
371-
372- "some" : "definition"
373- } ;
374-
375333 const createdBundle = {
376334 name : "BundleName.js" ,
377335 content : "Bundle Content" ,
@@ -400,7 +358,7 @@ test.serial("bundleOptions default (empty options passed)", async (t) => {
400358
401359 t . is ( builder . createBundle . callCount , 1 , "builder.createBundle should be called once" ) ;
402360 t . is ( builder . createBundle . getCall ( 0 ) . args . length , 2 ) ;
403- t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , effectiveBundleDefinition ,
361+ t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , bundleDefinition ,
404362 "builder.createBundle should be called with bundleDefinition" ) ;
405363 t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 1 ] , {
406364 // default bundleOptions
@@ -434,17 +392,6 @@ test.serial("bundleOptions (all options passed)", async (t) => {
434392 ignoreMissingModules : true
435393 } ;
436394
437- const effectiveBundleDefinition = {
438- // Defaults
439- "resolve" : false ,
440- "resolveConditional" : false ,
441- "renderer" : false ,
442- "sort" : true ,
443- "declareRawModules" : false ,
444-
445- "some" : "definition"
446- } ;
447-
448395 const createdBundle = {
449396 name : "BundleName.js" ,
450397 content : "Bundle Content" ,
@@ -473,7 +420,7 @@ test.serial("bundleOptions (all options passed)", async (t) => {
473420
474421 t . is ( builder . createBundle . callCount , 1 , "builder.createBundle should be called once" ) ;
475422 t . is ( builder . createBundle . getCall ( 0 ) . args . length , 2 ) ;
476- t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , effectiveBundleDefinition ,
423+ t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , bundleDefinition ,
477424 "builder.createBundle should be called with bundleDefinition" ) ;
478425 t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 1 ] , bundleOptions ,
479426 "builder.createBundle should be called with bundleOptions" ) ;
@@ -502,16 +449,6 @@ test.serial("Passes ignoreMissingModules bundleOption to LocatorResourcePool", a
502449
503450 "ignoreMissingModules" : "foo"
504451 } ;
505- const effectiveBundleDefinition = {
506- // Defaults
507- "resolve" : false ,
508- "resolveConditional" : false ,
509- "renderer" : false ,
510- "sort" : true ,
511- "declareRawModules" : false ,
512-
513- "some" : "definition"
514- } ;
515452
516453 const createdBundle = {
517454 name : "BundleName.js" ,
@@ -560,7 +497,7 @@ test.serial("Passes ignoreMissingModules bundleOption to LocatorResourcePool", a
560497
561498 t . is ( builder . createBundle . callCount , 1 , "builder.createBundle should be called once" ) ;
562499 t . is ( builder . createBundle . getCall ( 0 ) . args . length , 2 ) ;
563- t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , effectiveBundleDefinition ,
500+ t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 0 ] , bundleDefinition ,
564501 "builder.createBundle should be called with bundleDefinition" ) ;
565502 t . deepEqual ( builder . createBundle . getCall ( 0 ) . args [ 1 ] , effectiveBundleOptions ,
566503 "builder.createBundle should be called with bundleOptions" ) ;
@@ -602,17 +539,6 @@ test.serial("Verbose Logging", async (t) => {
602539 "some" : "option" ,
603540 } ;
604541
605- const effectiveBundleDefinition = {
606- // Defaults
607- "resolve" : false ,
608- "resolveConditional" : false ,
609- "renderer" : false ,
610- "sort" : true ,
611- "declareRawModules" : false ,
612-
613- "some" : "definition"
614- } ;
615-
616542 const createdBundle = {
617543 name : "Bundle Name" ,
618544 content : "Bundle Content" ,
@@ -645,6 +571,6 @@ test.serial("Verbose Logging", async (t) => {
645571
646572 t . deepEqual ( log . verbose . getCall ( 0 ) . args , [ "Generating bundle:" ] ) ;
647573 t . deepEqual ( log . verbose . getCall ( 1 ) . args ,
648- [ "bundleDefinition: " + JSON . stringify ( effectiveBundleDefinition , null , 2 ) ] ) ;
574+ [ "bundleDefinition: " + JSON . stringify ( bundleDefinition , null , 2 ) ] ) ;
649575 t . deepEqual ( log . verbose . getCall ( 2 ) . args , [ "bundleOptions: " + JSON . stringify ( effectiveBundleOptions , null , 2 ) ] ) ;
650576} ) ;
0 commit comments