1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/test/node_registry_spec.js
2013-10-20 21:42:18 +01:00

15 lines
379 B
JavaScript

var should = require("should");
var RedNodes = require("../red/nodes.js");
var RedNode = RedNodes.Node;
describe('NodeRegistry', function() {
it('automatically registers new nodes',function() {
should.not.exist(RedNodes.getNode('123'));
var n = new RedNode({id:'123',type:'abc'});
should.strictEqual(n,RedNodes.getNode('123'));
});
})