Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
load: function (testNode, testFlows, testCredentials, cb) {
logSpy = sinon.spy(log, 'log')
logSpy.FATAL = log.FATAL
logSpy.ERROR = log.ERROR
logSpy.WARN = log.WARN
logSpy.INFO = log.INFO
logSpy.DEBUG = log.DEBUG
logSpy.TRACE = log.TRACE
logSpy.METRIC = log.METRIC
if (typeof testCredentials === 'function' || !cb) {
cb = testCredentials
testCredentials = {}
}
var storage = {
getFlows: function () {
var defer = when.defer()
defer.resolve(testFlows)
return defer.promise
},
getCredentials: function () {
var defer = when.defer()