Skip to content

Commit

Permalink
Fix tests for QUnit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cherifGsoul committed May 16, 2019
1 parent c79d6dc commit 2b4d557
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions can-event-dom-enter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,21 @@ var supportsKeyboardEvents = (function () {
var compatWithNew = {
name: 'compat with can-dom-events',
domEvents: domEvents,
setup: function () {
beforeEach: function () {
this.removeEvent = compat(domEvents, enterEventType);
},
teardown: function () {
afterEach: function () {
this.removeEvent();
}
};

var rawNewDomEvents = {
name: 'plain with can-dom-events',
domEvents: domEvents,
setup: function () {
beforeEach: function () {
this.removeEvent = domEvents.addEvent(definition, enterEventType);
},
teardown: function () {
afterEach: function () {
this.removeEvent();
}
};
Expand All @@ -82,8 +82,8 @@ var suites = [

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

var domEvents = mod.domEvents;
Expand Down

0 comments on commit 2b4d557

Please sign in to comment.