mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add the node setting tlsConfigDisableLocalFiles for tls node. (#1190)
* Add the node setting tlsConfigDisableLocalFiles for tls node. * Fix the bug that shows node setting when specified in settings.js and exportable is false.
This commit is contained in:
committed by
Nick O'Leary
parent
34089aec70
commit
3b3d696e45
@@ -185,14 +185,16 @@ describe("red/settings", function() {
|
||||
var userSettings = {
|
||||
injectColor: "green",
|
||||
mqttColor: "yellow",
|
||||
c: [1,2,3]
|
||||
abColor: [1,2,3]
|
||||
}
|
||||
settings.init(userSettings);
|
||||
settings.registerNodeSettings("inject", {injectColor:{value:"red", exportable:true}} );
|
||||
settings.registerNodeSettings("ab", {abColor:{value:"red", exportable:false}} );
|
||||
var safeSettings = {};
|
||||
settings.exportNodeSettings(safeSettings);
|
||||
safeSettings["nodeSettings"].should.have.property("injectColor", "green");
|
||||
safeSettings["nodeSettings"].should.not.have.property("mqttColor");
|
||||
safeSettings["nodeSettings"].should.not.have.property("abColor");
|
||||
});
|
||||
|
||||
it('disables/enables node settings', function() {
|
||||
|
Reference in New Issue
Block a user