Releases: mroderick/bogus
Releases · mroderick/bogus
1.0.0 - supporting promises
Add require method
This version adds a require
method as an alias for requireWithStubs
.
// before
bogus.requireWithStubs('some-requirejs-name', function(m){
// magic
});
// 0.3.6
bogus.require('some-requirejs-name', function(m){
// magic
});
It's entirely backwards compatible, requireWithStubs
will still work.
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
});