Skip to content

Commit

Permalink
Merge pull request #24 from canjs/landscaper/qunit2
Browse files Browse the repository at this point in the history
Landscaper: QUnit2 upgrade
  • Loading branch information
cherifGsoul authored May 24, 2019
2 parents 79eb89c + 31c5189 commit 9b0a143
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions can-event-dom-radiochange-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ var suites = [

function runTests (mod) {
QUnit.module(mod.name, {
setup: mod.setup,
teardown: mod.teardown
beforeEach: mod.setup,
afterEach: mod.teardown
});

var domEvents = mod.domEvents;

test("subscription to an untracked radio should call listener", function (assert) {
QUnit.test("subscription to an untracked radio should call listener", function (assert) {
assert.expect(1);
var listener = document.createElement('input');
listener.id = 'listener';
Expand All @@ -68,7 +68,7 @@ function runTests (mod) {
domEvents.dispatch(radio, 'change');
});

test("subscription to a tracked radio should call itself", function (assert) {
QUnit.test("subscription to a tracked radio should call itself", function (assert) {
assert.expect(1);
var radio = document.createElement('input');
radio.id = 'selfish';
Expand All @@ -90,6 +90,6 @@ suites.forEach(runTests);

QUnit.module("can-event-dom-radiochange plain");

test("adds event to can-namespace", function(assert) {
QUnit.test("adds event to can-namespace", function(assert) {
assert.equal(canNamespace.domEventRadioChange, definition, "event is added");
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fixpack": "^2.3.1",
"jshint": "^2.9.1",
"steal": "^2.2.1",
"steal-qunit": "^1.0.1",
"steal-qunit": "^2.0.0",
"steal-tools": "^2.2.1",
"testee": "^0.9.0"
},
Expand Down

0 comments on commit 9b0a143

Please sign in to comment.