mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Support loading ESM via dynamic import rather than require
This commit is contained in:
		| @@ -626,7 +626,7 @@ describe("red/nodes/registry/loader",function() { | ||||
|                 node.enabled.should.be.true(); | ||||
|                 nodes.registerType.called.should.be.false(); | ||||
|                 node.should.have.property('err'); | ||||
|                 node.err.toString().should.eql("Error: fail to require (line:1)"); | ||||
|                 node.err.toString().should.eql("Error: fail to require"); | ||||
|  | ||||
|                 done(); | ||||
|             }).catch(function(err) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user