Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fourth test just works

  • Loading branch information...
commit 26a8cefac01535daf027e669e50b0bbd4a409567 1 parent 48ae5c0
@dominykas dominykas authored
Showing with 13 additions and 6 deletions.
  1. +13 −6 01-promiseImpl.test.js
View
19 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");
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.