Skip to content

Commit

Permalink
Fix and reenable Store's "Error" test. Fixes #93.
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed Nov 19, 2015
1 parent c81f6a9 commit 8945052
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/unit/Store.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@ define([
var M = declare([Memory, Trackable], {});
registerSuite({
name: "Store",
/*
// commented out until https://github.com/ibm-js/delite/issues/93 fixed
"Error" : function () {
var d = this.async(2000);

"Error": function () {
var d = this.async(10000); // SauceLabs takes 2-5 seconds for bogus URL to generate a 404 error
var store = new C();
var callbackCalled = false;
store.on("query-error", function () {
// should fire before the timeout
d.resolve();
d.resolve(true);
});
store.attachedCallback();
store.source = new Rest({ target: "/" });
store.on("query-success", function () {
d.reject(new Error("got query-success, should get query-error"));
});
store.source = new Rest({ target: "/foo" }); // bogus URL, should throw error
return d;
},
*/

Updates: function () {
var d = this.async(1500);
Expand Down

0 comments on commit 8945052

Please sign in to comment.