can-attribute-observable
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -70,3 +70,3 @@ var testHelpers = require("../test/helpers"); | ||
testIfRealDocument("select changes value", function(){ | ||
testIfRealDocument("select changes value", function(assert){ | ||
var html = "<select>" + | ||
@@ -105,6 +105,7 @@ "<option value='red'>Red</option>" + | ||
// in that it is not dispatching red. | ||
QUnit.deepEqual(dispatchedValues,["red"], "dispatched the right events"); | ||
assert.deepEqual(dispatchedValues,["red"], "dispatched the right events"); | ||
}); | ||
testIfRealDocument("focused set at end of queues (#16)", 5, function(assert) { | ||
testIfRealDocument("focused set at end of queues (#16)", function(assert) { | ||
assert.expect(5); | ||
var input = document.createElement("input"); | ||
@@ -137,3 +138,3 @@ var otherInput = document.createElement("input"); | ||
QUnit.deepEqual(eventValues,[true], "became focused once"); | ||
assert.deepEqual(eventValues,[true], "became focused once"); | ||
}); | ||
@@ -140,0 +141,0 @@ |
@@ -23,3 +23,3 @@ var canReflect = require("can-reflect"); | ||
// override the internal handler so it calls `QUnit.done` itself, | ||
// override the internal handler so it calls `done` itself, | ||
// if AttributeObservable does not teardown the handler correctly | ||
@@ -26,0 +26,0 @@ // this test will fail with "Too many calls to the `assert.async` callback" |
{ | ||
"name": "can-attribute-observable", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Create observables from HTML attributes.", | ||
@@ -29,3 +29,3 @@ "main": "can-attribute-observable", | ||
"steal": "^1.6.5", | ||
"steal-qunit": "^1.0.1", | ||
"steal-qunit": "^2.0.0", | ||
"testee": "^0.9.1" | ||
@@ -32,0 +32,0 @@ }, |
@@ -12,3 +12,3 @@ var globals = require("can-globals"); | ||
QUnit.module(name, { | ||
setup: function() { | ||
beforeEach: function() { | ||
@@ -27,3 +27,3 @@ globals.setKeyValue("document", doc); | ||
}, | ||
teardown: function(){ | ||
afterEach: function(assert){ | ||
if(doc !== document) { | ||
@@ -33,3 +33,3 @@ doc.body.removeChild(this.fixture); | ||
stop(); | ||
var done = assert.async(); | ||
helpers.afterMutation(function() { | ||
@@ -46,3 +46,3 @@ | ||
start(); | ||
done(); | ||
}); | ||
@@ -49,0 +49,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
48237
1128
17