File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 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+
16#### 0.3.1
27
38 - 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 {
234234 library : { register : function ( ) { } } ,
235235 get server ( ) { return self . _server }
236236 }
237-
238237 redNodes . init ( mockRuntime ) ;
239238 redNodes . registerType ( "helper" , function ( n ) {
240239 redNodes . createNode ( this , n ) ;
@@ -281,10 +280,9 @@ class NodeTestHelper extends EventEmitter {
281280 }
282281 }
283282 } ) ;
284-
285283 return Promise . all ( initPromises )
286- . then ( redNodes . loadFlows )
287- . then ( redNodes . startFlows )
284+ . then ( ( ) => redNodes . loadFlows ( ) )
285+ . then ( ( ) => redNodes . startFlows ( ) )
288286 . then ( ( ) => {
289287 should . deepEqual ( testFlow , redNodes . getFlows ( ) . flows ) ;
290288 if ( cb ) cb ( ) ;
@@ -299,7 +297,7 @@ class NodeTestHelper extends EventEmitter {
299297
300298 // internal API
301299 this . _context . clean ( { allNodes :[ ] } ) ;
302- return this . _redNodes . stopFlows ( ) ;
300+ return this . _redNodes . stopFlows ( )
303301 }
304302
305303 /**
Original file line number Diff line number Diff line change 11{
22 "name" : " node-red-node-test-helper" ,
3- "version" : " 0.3.1 " ,
3+ "version" : " 0.3.2 " ,
44 "description" : " A test framework for Node-RED nodes" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments