mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Test to ensure credential definition is defined after index.registerType
This commit is contained in:
@@ -195,5 +195,14 @@ module.exports = {
|
||||
*/
|
||||
save: function () {
|
||||
return storage.saveCredentials(credentialCache);
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the credential definition for the given node type
|
||||
* @param type the node type
|
||||
* @return the credential definition
|
||||
*/
|
||||
getDefinition: function (type) {
|
||||
return credentialsDef[type];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user