Skip to content

Releases: mroderick/bogus

1.0.0 - supporting promises

24 Feb 18:08
Compare
Choose a tag to compare

bogus has been quite stable for a long time, with this release, we're adding promises and do not expect any significant API changes in near future.

Add require method

26 Jun 10:59
Compare
Choose a tag to compare

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

04 May 10:38
Compare
Choose a tag to compare

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