From c42a9d737081fb8ee768c7178dae0e1f19c0f343 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 6 Mar 2019 20:48:46 -0500 Subject: 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. --- js/mixins/dom_iterable_test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'js/mixins') 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); } -- cgit v1.2.3