Skip to content

Commit

Permalink
fourth test just works
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Oct 1, 2012
1 parent 48ae5c0 commit 26a8cef
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions 01-promiseImpl.test.js
Expand Up @@ -43,13 +43,20 @@ define("01-promiseImpl.test", ["buster", "fs", "./01-promiseImpl"], function(bus
.then(this.mock().never())
.fail(function(e){
expect(e).not.toBeNull();
})
expect(this.fsStub).toHaveBeenCalledOnce();
}.bind(this))
.fin(done).end();
},

"should return error (de, na)": function(done)
{
html.getHtml("de", "na")
.then(this.mock().never())
.fail(function(e){
expect(e).not.toBeNull();
expect(this.fsStub).toHaveBeenCalledTwice();
}.bind(this))
.fin(done).end();
// },
//
// "should return error (de, na)": function(done)
// {
// throw new Error("Not implemented");
}

});
Expand Down

0 comments on commit 26a8cef

Please sign in to comment.