Permalink
Browse files

fourth test just works

  • Loading branch information...
1 parent 48ae5c0 commit 26a8cefac01535daf027e669e50b0bbd4a409567 @dominykas dominykas committed Oct 1, 2012
Showing with 13 additions and 6 deletions.
  1. +13 −6 01-promiseImpl.test.js
@@ -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");
}
});

0 comments on commit 26a8cef

Please sign in to comment.