Skip to content

Commit

Permalink
old ie compat
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Feb 27, 2021
1 parent 2a68899 commit 7a0ed07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/events-once.js
Expand Up @@ -142,7 +142,7 @@ function onceError() {

function onceWithEventTarget() {
var et = new EventTargetMock();
process.nextTick(() => {
process.nextTick(function () {
et.dispatchEvent('myevent', 42);
});
return once(et, 'myevent').then(function (args) {
Expand All @@ -154,7 +154,7 @@ function onceWithEventTarget() {

function onceWithEventTargetTwoArgs() {
var et = new EventTargetMock();
process.nextTick(() => {
process.nextTick(function () {
et.dispatchEvent('myevent', 42, 24);
});
return once(et, 'myevent').then(function (value) {
Expand All @@ -165,7 +165,7 @@ function onceWithEventTargetTwoArgs() {
function onceWithEventTargetError() {
var et = new EventTargetMock();
var expected = new Error('kaboom');
process.nextTick(() => {
process.nextTick(function () {
et.dispatchEvent('error', expected);
});
return once(et, 'error').then(function (args) {
Expand Down

0 comments on commit 7a0ed07

Please sign in to comment.