Skip to content

Commit

Permalink
Use window from runner
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Jul 9, 2024
1 parent 62531b6 commit 512fdca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/dom/forms.browser.mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ var domTestRunner = require('../../src/test-utils/domTestRunner');

describe('forms', function() {
const runner = domTestRunner.install();
const { window } = runner;

function createEvent(type) {
return new runner.window.Event(type, {bubbles: true});
return new window.Event(type, {bubbles: true});
}

describe('textarea', function() {
Expand Down

0 comments on commit 512fdca

Please sign in to comment.