mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Enabling and disabling non-existent nodes throws an error
This commit is contained in:
@@ -991,14 +991,14 @@ describe('NodeRegistry', function() {
|
||||
});
|
||||
|
||||
it('fails to enable/disable non-existent nodes', function(done) {
|
||||
typeRegistry.init(settings);
|
||||
typeRegistry.init(settingsWithStorage);
|
||||
typeRegistry.load("wontexist",true).then(function() {
|
||||
var list = typeRegistry.getNodeList();
|
||||
list.should.be.an.Array.and.be.empty;
|
||||
|
||||
/*jshint immed: false */
|
||||
(function() {
|
||||
typeRegistry.disableNode("123");
|
||||
typeRegistry.disableNode("123");
|
||||
}).should.throw();
|
||||
|
||||
/*jshint immed: false */
|
||||
|
Reference in New Issue
Block a user