From ae86cbb551f7b88f83d73a447411f753485e49e2 Mon Sep 17 00:00:00 2001 From: Tim Reichen Date: Mon, 26 Oct 2020 16:03:30 +0100 Subject: rename(std/testing): rename assert*Contains to assert*Includes (#7951) This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes --- std/node/module_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/node/module_test.ts') diff --git a/std/node/module_test.ts b/std/node/module_test.ts index 2b8c5c790..2b3ed3eed 100644 --- a/std/node/module_test.ts +++ b/std/node/module_test.ts @@ -3,7 +3,7 @@ import { assert, assertEquals, - assertStringContains, + assertStringIncludes, } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; @@ -67,6 +67,6 @@ Deno.test("requireStack", function () { try { hello(); } catch (e) { - assertStringContains(e.stack, "/tests/cjs/cjs_throw.js"); + assertStringIncludes(e.stack, "/tests/cjs/cjs_throw.js"); } }); -- cgit v1.2.3