Support loading ESM via dynamic import rather than require

This commit is contained in:
Håkon Løvdal
2023-09-17 17:31:42 +02:00
parent 3bf1667181
commit e1d974be03
2 changed files with 28 additions and 4 deletions

View File

@@ -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) {