can-fixture
Advanced tools
Comparing version 3.0.3 to 3.0.4
{ | ||
"name": "can-fixture", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Intercept AJAX requests and simulate responses.", | ||
@@ -5,0 +5,0 @@ "main": "fixture.js", |
@@ -9,3 +9,2 @@ require("./matches-test"); | ||
var canDev = require('can-log/dev/dev'); | ||
var clone = require("steal-clone"); | ||
var dataFromUrl = require("../data-from-url"); | ||
@@ -1953,15 +1952,18 @@ var canReflect = require("can-reflect"); | ||
testHelpers.dev.devOnlyTest("Works with steal-clone", function() { | ||
clone({})["import"]("can-fixture").then(function(fixture){ | ||
fixture('/onload', function(req, res) { | ||
res(400); | ||
}); | ||
steal.loader.import("steal-clone", { name: "can-fixture" }) | ||
.then(function(clone) { | ||
clone({})["import"]("can-fixture").then(function(fixture){ | ||
fixture('/onload', function(req, res) { | ||
res(400); | ||
}); | ||
var xhr = new XMLHttpRequest(); | ||
xhr.addEventListener('load', function() { | ||
fixture('/onload', null); | ||
QUnit.ok(true, "Got to the load event without throwing"); | ||
start(); | ||
var xhr = new XMLHttpRequest(); | ||
xhr.addEventListener('load', function() { | ||
fixture('/onload', null); | ||
QUnit.ok(true, "Got to the load event without throwing"); | ||
start(); | ||
}); | ||
xhr.open('GET', '/onload'); | ||
xhr.send(); | ||
}); | ||
xhr.open('GET', '/onload'); | ||
xhr.send(); | ||
}); | ||
@@ -1968,0 +1970,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
136725
3156