File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change
1
+ #### 0.3.2
2
+
3
+ - Fix async module loading @knolleary
4
+
5
+
1
6
#### 0.3.1
2
7
3
8
- Add support for async node modules (#63 ) @knolleary
Original file line number Diff line number Diff line change @@ -234,7 +234,6 @@ class NodeTestHelper extends EventEmitter {
234
234
library : { register : function ( ) { } } ,
235
235
get server ( ) { return self . _server }
236
236
}
237
-
238
237
redNodes . init ( mockRuntime ) ;
239
238
redNodes . registerType ( "helper" , function ( n ) {
240
239
redNodes . createNode ( this , n ) ;
@@ -281,10 +280,9 @@ class NodeTestHelper extends EventEmitter {
281
280
}
282
281
}
283
282
} ) ;
284
-
285
283
return Promise . all ( initPromises )
286
- . then ( redNodes . loadFlows )
287
- . then ( redNodes . startFlows )
284
+ . then ( ( ) => redNodes . loadFlows ( ) )
285
+ . then ( ( ) => redNodes . startFlows ( ) )
288
286
. then ( ( ) => {
289
287
should . deepEqual ( testFlow , redNodes . getFlows ( ) . flows ) ;
290
288
if ( cb ) cb ( ) ;
@@ -299,7 +297,7 @@ class NodeTestHelper extends EventEmitter {
299
297
300
298
// internal API
301
299
this . _context . clean ( { allNodes :[ ] } ) ;
302
- return this . _redNodes . stopFlows ( ) ;
300
+ return this . _redNodes . stopFlows ( )
303
301
}
304
302
305
303
/**
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " node-red-node-test-helper" ,
3
- "version" : " 0.3.1 " ,
3
+ "version" : " 0.3.2 " ,
4
4
"description" : " A test framework for Node-RED nodes" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments