1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Update node_registry_spec

This commit is contained in:
Nick O'Leary 2014-03-31 14:41:51 +01:00
parent ea2c0da163
commit c1502663b4

View File

@ -5,9 +5,13 @@ var RedNode = RedNodes.Node;
describe('NodeRegistry', function() { describe('NodeRegistry', function() {
it('automatically registers new nodes',function() { it('automatically registers new nodes',function() {
should.not.exist(RedNodes.getNode('123')); var testNode = RedNodes.getNode('123');
should.not.exist(n);
var n = new RedNode({id:'123',type:'abc'}); var n = new RedNode({id:'123',type:'abc'});
should.strictEqual(n,RedNodes.getNode('123'));
var newNode = RedNodes.getNode('123');
should.strictEqual(n,newNode);
}); });
}) })