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:
parent
c850b258b4
commit
9b59ed7c79
1 changed files with 3 additions and 3 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue