Test to ensure credential definition is defined after index.registerType

This commit is contained in:
hbeeken
2014-07-29 14:58:49 +01:00
parent ac1e750f14
commit 796810f460
2 changed files with 95 additions and 39 deletions

View File

@@ -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];
}
}