New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

can-fixture

Package Overview
Dependencies
Maintainers
11
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.0-pre.9 to 3.0.0-pre.10

2

package.json
{
"name": "can-fixture",
"version": "3.0.0-pre.9",
"version": "3.0.0-pre.10",
"description": "Intercept AJAX requests and simulate responses.",

@@ -5,0 +5,0 @@ "main": "fixture.js",

@@ -119,5 +119,3 @@ var QueryLogic = require("can-query-logic");

this.connection.createData( typeConvert.call(this,req.data) ).then(function(data){
var responseData = {};
responseData[idProp] = req.data[idProp];
res(responseData);
res(data);
}, function(err){

@@ -124,0 +122,0 @@ res(403, err);

@@ -77,1 +77,38 @@ var QUnit = require('steal-qunit');

});
QUnit.test("createData, destroyData, updateData", function(assert){
var store = fixture.store([
{id: 0, name: "foo"}
], new QueryLogic({identity: ["id"]}));
QUnit.stop();
store.createData({
data: {name: "bar"}
}, function(instance){
QUnit.deepEqual(instance, {id: 1, name: "bar"} );
QUnit.start();
});
/*
.then(function(instance){
var data = store.getList({});
assert.deepEqual(data, {
count: 2,
data: [
{id: 0, name: "foo"},
{id: 1, name: "updated"}
]
});
return store.destroyInstance(instance);
})
.then(function(){
var data = store.getList({});
assert.deepEqual(data, {
count: 1,
data: [
{id: 0, name: "foo"}
]
});
QUnit.start();
});*/
});
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