Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-fixture

Package Overview
Dependencies
Maintainers
13
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-fixture - npm Package Compare versions

Comparing version 3.0.3 to 3.0.4

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc