@@ -119,7 +119,7 @@ describe('flows/index', function() {
119119 { id :"t1-1" , x :10 , y :10 , z :"t1" , type :"test" , wires :[ ] } ,
120120 { id :"t1" , type :"tab" }
121121 ] ;
122- flows . init ( { } , storage ) ;
122+ flows . init ( { settings : { } , storage : storage } ) ;
123123 flows . setFlows ( originalConfig ) . then ( function ( ) {
124124 credentialsExtract . called . should . be . false ;
125125 credentialsClean . called . should . be . true ;
@@ -134,7 +134,7 @@ describe('flows/index', function() {
134134 { id :"t1-1" , x :10 , y :10 , z :"t1" , type :"test" , wires :[ ] } ,
135135 { id :"t1" , type :"tab" }
136136 ] ;
137- flows . init ( { } , storage ) ;
137+ flows . init ( { settings : { } , storage : storage } ) ;
138138 flows . setFlows ( originalConfig , "load" ) . then ( function ( ) {
139139 credentialsExtract . called . should . be . false ;
140140 credentialsClean . called . should . be . true ;
@@ -151,7 +151,7 @@ describe('flows/index', function() {
151151 { id :"t1-1" , x :10 , y :10 , z :"t1" , type :"test" , wires :[ ] , credentials :{ } } ,
152152 { id :"t1" , type :"tab" }
153153 ] ;
154- flows . init ( { } , storage ) ;
154+ flows . init ( { settings : { } , storage : storage } ) ;
155155 flows . setFlows ( originalConfig ) . then ( function ( ) {
156156 credentialsExtract . called . should . be . true ;
157157 credentialsClean . called . should . be . true ;
@@ -188,7 +188,7 @@ describe('flows/index', function() {
188188 } )
189189 } ) ;
190190
191- flows . init ( { } , storage ) ;
191+ flows . init ( { settings : { } , storage : storage } ) ;
192192 flows . load ( ) . then ( function ( ) {
193193 flows . startFlows ( ) ;
194194 } ) ;
@@ -217,7 +217,7 @@ describe('flows/index', function() {
217217 } )
218218 } ) ;
219219
220- flows . init ( { } , storage ) ;
220+ flows . init ( { settings : { } , storage : storage } ) ;
221221 flows . load ( ) . then ( function ( ) {
222222 flows . startFlows ( ) ;
223223 } ) ;
@@ -234,7 +234,7 @@ describe('flows/index', function() {
234234 storage . getFlows = function ( ) {
235235 return when . resolve ( originalConfig ) ;
236236 }
237- flows . init ( { } , storage ) ;
237+ flows . init ( { settings : { } , storage : storage } ) ;
238238 flows . load ( ) . then ( function ( ) {
239239 credentialsExtract . called . should . be . false ;
240240 credentialsLoad . called . should . be . true ;
@@ -262,7 +262,7 @@ describe('flows/index', function() {
262262 done ( ) ;
263263 } ) ;
264264
265- flows . init ( { } , storage ) ;
265+ flows . init ( { settings : { } , storage : storage } ) ;
266266 flows . load ( ) . then ( function ( ) {
267267 flows . startFlows ( ) ;
268268 } ) ;
@@ -277,7 +277,7 @@ describe('flows/index', function() {
277277 return when . resolve ( originalConfig ) ;
278278 }
279279
280- flows . init ( { } , storage ) ;
280+ flows . init ( { settings : { } , storage : storage } ) ;
281281 flows . load ( ) . then ( function ( ) {
282282 flows . startFlows ( ) ;
283283 flowCreate . called . should . be . false ;
@@ -295,7 +295,7 @@ describe('flows/index', function() {
295295 storage . getFlows = function ( ) {
296296 return when . resolve ( originalConfig ) ;
297297 }
298- flows . init ( { } , storage ) ;
298+ flows . init ( { settings : { } , storage : storage } ) ;
299299 flows . load ( ) . then ( function ( ) {
300300 flows . startFlows ( ) ;
301301 flowCreate . called . should . be . false ;
@@ -329,7 +329,7 @@ describe('flows/index', function() {
329329 storage . getFlows = function ( ) {
330330 return when . resolve ( originalConfig ) ;
331331 }
332- flows . init ( { } , storage ) ;
332+ flows . init ( { settings : { } , storage : storage } ) ;
333333 flows . load ( ) . then ( function ( ) {
334334 var c = 0 ;
335335 flows . eachNode ( function ( node ) {
@@ -360,7 +360,7 @@ describe('flows/index', function() {
360360 done ( ) ;
361361 } ) ;
362362
363- flows . init ( { } , storage ) ;
363+ flows . init ( { settings : { } , storage : storage } ) ;
364364 flows . load ( ) . then ( function ( ) {
365365 flows . startFlows ( ) ;
366366 } ) ;
@@ -391,7 +391,7 @@ describe('flows/index', function() {
391391 }
392392 } ) ;
393393
394- flows . init ( { } , storage ) ;
394+ flows . init ( { settings : { } , storage : storage } ) ;
395395 flows . load ( ) . then ( function ( ) {
396396 flows . startFlows ( ) ;
397397 } ) ;
@@ -413,7 +413,7 @@ describe('flows/index', function() {
413413 done ( ) ;
414414 } ) ;
415415
416- flows . init ( { } , storage ) ;
416+ flows . init ( { settings : { } , storage : storage } ) ;
417417 flows . load ( ) . then ( function ( ) {
418418 flows . startFlows ( ) ;
419419 } ) ;
@@ -445,7 +445,7 @@ describe('flows/index', function() {
445445 }
446446 } ) ;
447447
448- flows . init ( { } , storage ) ;
448+ flows . init ( { settings : { } , storage : storage } ) ;
449449 flows . load ( ) . then ( function ( ) {
450450 flows . startFlows ( ) ;
451451 } ) ;
@@ -473,7 +473,7 @@ describe('flows/index', function() {
473473 { id :"t1-1" , x :10 , y :10 , z :"t1" , type :"test" , wires :[ ] } ,
474474 { id :"t1" , type :"tab" }
475475 ] ;
476- flows . init ( { } , storage ) ;
476+ flows . init ( { settings : { } , storage : storage } ) ;
477477 flows . setFlows ( originalConfig ) . then ( function ( ) {
478478 flows . checkTypeInUse ( "unused-module" ) ;
479479 done ( ) ;
@@ -484,7 +484,7 @@ describe('flows/index', function() {
484484 { id :"t1-1" , x :10 , y :10 , z :"t1" , type :"test" , wires :[ ] } ,
485485 { id :"t1" , type :"tab" }
486486 ] ;
487- flows . init ( { } , storage ) ;
487+ flows . init ( { settings : { } , storage : storage } ) ;
488488 flows . setFlows ( originalConfig ) . then ( function ( ) {
489489 /*jshint immed: false */
490490 try {
@@ -507,7 +507,7 @@ describe('flows/index', function() {
507507 storage . getFlows = function ( ) {
508508 return when . resolve ( originalConfig ) ;
509509 }
510- flows . init ( { } , storage ) ;
510+ flows . init ( { settings : { } , storage : storage } ) ;
511511 flows . load ( ) . then ( function ( ) {
512512 flows . addFlow ( {
513513 label :'new flow' ,
@@ -534,7 +534,7 @@ describe('flows/index', function() {
534534 storage . setFlows = function ( ) {
535535 return when . resolve ( ) ;
536536 }
537- flows . init ( { } , storage ) ;
537+ flows . init ( { settings : { } , storage : storage } ) ;
538538 flows . load ( ) . then ( function ( ) {
539539 return flows . startFlows ( ) ;
540540 } ) . then ( function ( ) {
0 commit comments