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

Fixing tests by clearing out the node registry between tests.

This commit is contained in:
hbeeken 2014-08-04 10:59:08 +01:00
parent 38c541361e
commit 118c50ce8e

View File

@ -24,6 +24,10 @@ describe('XML node', function() {
helper.startServer(done); helper.startServer(done);
}); });
afterEach(function() {
helper.unload();
});
it('should be loaded', function(done) { it('should be loaded', function(done) {
var flow = [{id:"xmlNode1", type:"xml", name: "xmlNode" }]; var flow = [{id:"xmlNode1", type:"xml", name: "xmlNode" }];
helper.load(xmlNode, flow, function() { helper.load(xmlNode, flow, function() {