summaryrefslogtreecommitdiff
path: root/js/custom_event_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-06 20:48:46 -0500
committerGitHub <noreply@github.com>2019-03-06 20:48:46 -0500
commitc42a9d737081fb8ee768c7178dae0e1f19c0f343 (patch)
tree9ffb7e502da62793ea099c34bd7b29c8a7a19b19 /js/custom_event_test.ts
parentde1a10e5f7afe793a66b2349642ea135fc066104 (diff)
Upgrade deno_std (#1892)
A major API change was that asserts are imported from testing/asserts.ts now rather than testing/mod.ts and assertEqual as renamed to assertEquals to conform to what is most common in JavaScript.
Diffstat (limited to 'js/custom_event_test.ts')
-rw-r--r--js/custom_event_test.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/custom_event_test.ts b/js/custom_event_test.ts
index 4a9572780..20c901303 100644
--- a/js/custom_event_test.ts
+++ b/js/custom_event_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
-import { test, assertEqual } from "./test_util.ts";
+import { test, assertEquals } from "./test_util.ts";
test(function customEventInitializedWithDetail() {
const type = "touchstart";
@@ -11,11 +11,11 @@ test(function customEventInitializedWithDetail() {
});
const event = new CustomEvent(type, customEventDict);
- assertEqual(event.bubbles, true);
- assertEqual(event.cancelable, true);
- assertEqual(event.currentTarget, null);
- assertEqual(event.detail, detail);
- assertEqual(event.isTrusted, false);
- assertEqual(event.target, null);
- assertEqual(event.type, type);
+ assertEquals(event.bubbles, true);
+ assertEquals(event.cancelable, true);
+ assertEquals(event.currentTarget, null);
+ assertEquals(event.detail, detail);
+ assertEquals(event.isTrusted, false);
+ assertEquals(event.target, null);
+ assertEquals(event.type, type);
});