Skip to content

Stub multiple dependencies

Compare
Choose a tag to compare
@mroderick mroderick released this 04 May 10:38
· 8 commits to master since this release

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
});