Fix unit tests for externalModules

This commit is contained in:
Nick O'Leary 2020-12-27 20:59:31 +00:00
parent aacb92a7ae
commit 9d2d060dec
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 2 additions and 3 deletions

View File

@ -204,7 +204,6 @@ function reinstallModules(moduleList) {
if (settings.externalModules && settings.externalModules.hasOwnProperty('autoInstallRetry')) {
installRetry = settings.externalModules.autoInstallRetry * 1000;
}
externalModules.autoInstallRetry
for (var i=0;i<moduleList.length;i++) {
if (moduleList[i].id != "node-red") {
(function(mod) {

View File

@ -61,8 +61,8 @@ describe("runtime-api/settings", function() {
result.should.not.have.property("foo",123);
result.should.have.property("flowEncryptionType","test-key-type");
result.should.not.have.property("user");
result.should.have.property("editorTheme");
result.editorTheme.should.eql({palette:{editable:false}});
result.should.have.property("externalModules");
result.externalModules.should.eql({palette:{allowInstall:false, allowUpload: false}});
})
});