Stub multiple dependencies
You can now pass a map to stub
to keep test setup a bit more concise
var firstFake = {};
var secondFake = {};
bogus.stub({
'path/to/first/dependency': firstFake,
'path/to/second/dependency': secondFake
});
You can now pass a map to stub
to keep test setup a bit more concise
var firstFake = {};
var secondFake = {};
bogus.stub({
'path/to/first/dependency': firstFake,
'path/to/second/dependency': secondFake
});