credentials is undefined
enorfelt opened this issue · 2 comments
enorfelt commented
How do I use testCredentials?
I supply credentials like this in my test:
var credentials = {
userid: "username",
apikey: "password",
};
helper.load(bfApiReq, flow, credentials, function () {
Then in my node this.credentials.userid
is undefined.
enorfelt commented
I think I figured it out. You have do define witch flow the credentials belong to.
Like this:
var credentials = {
n1: {
userid: "username",
apikey: "password",
},
};
javis86 commented
This needs to be in docs!