can-connect
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -205,2 +205,3 @@ var QUnit = require("steal-qunit"); | ||
asyncTest("metadata transfered through fall through cache (#125)", function(){ | ||
var getDataBehaviorDataPromise; | ||
var cacheConnection = { | ||
@@ -216,3 +217,4 @@ getListData: function(){ | ||
getListData: function(){ | ||
return testHelpers.asyncResolve({data: [{id: 1}], count: 5}); | ||
getDataBehaviorDataPromise = testHelpers.asyncResolve({data: [{id: 1}], count: 5}); | ||
return getDataBehaviorDataPromise; | ||
} | ||
@@ -228,7 +230,9 @@ }; | ||
setTimeout(function(){ | ||
QUnit.equal(list.count, 5, "expando added"); | ||
QUnit.start(); | ||
},30); | ||
getDataBehaviorDataPromise.then(function() { | ||
QUnit.equal(list.count, 5, "expando added"); | ||
QUnit.start(); | ||
}); | ||
}, 50); | ||
}); | ||
}); |
{ | ||
"name": "can-connect", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Data connection middleware and utilities", | ||
@@ -5,0 +5,0 @@ "main": "can-connect.js", |
436087
11563