summaryrefslogtreecommitdiff
path: root/js/mixins
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/mixins
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/mixins')
-rw-r--r--js/mixins/dom_iterable_test.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/js/mixins/dom_iterable_test.ts b/js/mixins/dom_iterable_test.ts
index 863891f51..a0bed7bd3 100644
--- a/js/mixins/dom_iterable_test.ts
+++ b/js/mixins/dom_iterable_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { test, assert, assertEqual } from "../test_util.ts";
+import { test, assert, assertEquals } from "../test_util.ts";
function setup() {
const dataSymbol = Symbol("data symbol");
@@ -32,9 +32,9 @@ test(function testDomIterable() {
const domIterable = new DomIterable(fixture);
- assertEqual(Array.from(domIterable.entries()), fixture);
- assertEqual(Array.from(domIterable.values()), [1, 2]);
- assertEqual(Array.from(domIterable.keys()), ["foo", "bar"]);
+ assertEquals(Array.from(domIterable.entries()), fixture);
+ assertEquals(Array.from(domIterable.values()), [1, 2]);
+ assertEquals(Array.from(domIterable.keys()), ["foo", "bar"]);
let result: Array<[string, number]> = [];
for (const [key, value] of domIterable) {
@@ -42,21 +42,21 @@ test(function testDomIterable() {
assert(value != null);
result.push([key, value]);
}
- assertEqual(fixture, result);
+ assertEquals(fixture, result);
result = [];
const scope = {};
function callback(value, key, parent) {
- assertEqual(parent, domIterable);
+ assertEquals(parent, domIterable);
assert(key != null);
assert(value != null);
assert(this === scope);
result.push([key, value]);
}
domIterable.forEach(callback, scope);
- assertEqual(fixture, result);
+ assertEquals(fixture, result);
- assertEqual(DomIterable.name, Base.name);
+ assertEquals(DomIterable.name, Base.name);
});
test(function testDomIterableScope() {
@@ -68,7 +68,7 @@ test(function testDomIterableScope() {
// tslint:disable-next-line:no-any
function checkScope(thisArg: any, expected: any) {
function callback() {
- assertEqual(this, expected);
+ assertEquals(this, expected);
}
domIterable.forEach(callback, thisArg);
}