Update node_registry_spec

This commit is contained in:
Nick O'Leary 2014-03-31 14:41:51 +01:00
parent ea2c0da163
commit c1502663b4
1 changed files with 6 additions and 2 deletions

View File

@ -5,9 +5,13 @@ var RedNode = RedNodes.Node;
describe('NodeRegistry', 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'});
should.strictEqual(n,RedNodes.getNode('123'));
var newNode = RedNodes.getNode('123');
should.strictEqual(n,newNode);
});
})