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/fs/empty_dir_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/fs/empty_dir_test.ts') diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 851fe37b9..6c3406115 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -2,7 +2,7 @@ import { assert, assertEquals, - assertStringContains, + assertStringIncludes, assertThrows, assertThrowsAsync, } from "../testing/asserts.ts"; @@ -231,7 +231,7 @@ for (const s of scenes) { assert(p.stdout); const output = await p.output(); p.close(); - assertStringContains(new TextDecoder().decode(output), s.output); + assertStringIncludes(new TextDecoder().decode(output), s.output); } catch (err) { await Deno.remove(testfolder, { recursive: true }); throw err; -- cgit v1.2.3