1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

fix event target tests

This commit is contained in:
Bartek Iwańczuk 2020-03-05 14:55:11 +01:00 committed by Ryan Dahl
parent c850b258b4
commit 9b59ed7c79

View file

@ -155,7 +155,7 @@ unitTest(function eventTargetThisShouldDefaultToWindow(): void {
assertEquals(n, 1);
});
test(function eventTargetShouldAcceptEventListenerObject(): void {
unitTest(function eventTargetShouldAcceptEventListenerObject(): void {
const target = new EventTarget();
const event = new Event("foo", { bubbles: true, cancelable: false });
let callCount = 0;
@ -180,7 +180,7 @@ test(function eventTargetShouldAcceptEventListenerObject(): void {
assertEquals(callCount, 2);
});
test(function eventTargetShouldAcceptAsyncFunction(): void {
unitTest(function eventTargetShouldAcceptAsyncFunction(): void {
const target = new EventTarget();
const event = new Event("foo", { bubbles: true, cancelable: false });
let callCount = 0;
@ -203,7 +203,7 @@ test(function eventTargetShouldAcceptAsyncFunction(): void {
assertEquals(callCount, 2);
});
test(
unitTest(
function eventTargetShouldAcceptAsyncFunctionForEventListenerObject(): void {
const target = new EventTarget();
const event = new Event("foo", { bubbles: true, cancelable: false });