can-fixture
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "can-fixture", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Intercept AJAX requests and simulate responses.", | ||
@@ -5,0 +5,0 @@ "main": "fixture.js", |
@@ -1411,4 +1411,2 @@ var QUnit = require('steal-qunit'); | ||
asyncTest("slow mode works (#26)", function(){ | ||
var url = __dirname + '/fixtures/test.json'; | ||
@@ -1422,3 +1420,3 @@ fixture({url: url}, 1000); | ||
xhr.addEventListener('load', function(){ | ||
ok(Math.abs(new Date() - startTime - 1000) < 500, "within 500 ms of 1 second delay"); | ||
ok((new Date() - startTime) >= 1000, "takes at least 1 second delay"); | ||
fixture({url: url}, null); | ||
@@ -1425,0 +1423,0 @@ start(); |
131993