diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-06-06 11:43:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 23:43:00 -0400 |
commit | ed5aedc6b4a1d72208649afd8793e288d94021b1 (patch) | |
tree | f5039c94c2a4d03182a5b97dbc0471a1b3123eb1 /cli/tests/unit/files_test.ts | |
parent | c137b11abfb946ef72a5fcb27e11e0b286a33be3 (diff) |
Rename abbreviated assertions in std/testing (#6118)
Diffstat (limited to 'cli/tests/unit/files_test.ts')
-rw-r--r-- | cli/tests/unit/files_test.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cli/tests/unit/files_test.ts b/cli/tests/unit/files_test.ts index a1b532157..46bcb2173 100644 --- a/cli/tests/unit/files_test.ts +++ b/cli/tests/unit/files_test.ts @@ -3,7 +3,7 @@ import { unitTest, assert, assertEquals, - assertStrContains, + assertStringContains, } from "./test_util.ts"; unitTest(function filesStdioFileDescriptors(): void { @@ -225,7 +225,7 @@ unitTest(async function openOptions(): Promise<void> { err = e; } assert(!!err); - assertStrContains( + assertStringContains( err.message, "OpenOptions requires at least one option to be true" ); @@ -236,7 +236,10 @@ unitTest(async function openOptions(): Promise<void> { err = e; } assert(!!err); - assertStrContains(err.message, "'truncate' option requires 'write' option"); + assertStringContains( + err.message, + "'truncate' option requires 'write' option" + ); try { await Deno.open(filename, { create: true, write: false }); @@ -244,7 +247,7 @@ unitTest(async function openOptions(): Promise<void> { err = e; } assert(!!err); - assertStrContains( + assertStringContains( err.message, "'create' or 'createNew' options require 'write' or 'append' option" ); @@ -255,7 +258,7 @@ unitTest(async function openOptions(): Promise<void> { err = e; } assert(!!err); - assertStrContains( + assertStringContains( err.message, "'create' or 'createNew' options require 'write' or 'append' option" ); @@ -560,7 +563,7 @@ unitTest({ perms: { read: true } }, async function seekMode(): Promise<void> { } assert(!!err); assert(err instanceof TypeError); - assertStrContains(err.message, "Invalid seek mode"); + assertStringContains(err.message, "Invalid seek mode"); // We should still be able to read the file // since it is still open. |