summaryrefslogtreecommitdiff
path: root/cli/tests/unit/files_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit/files_test.ts')
-rw-r--r--cli/tests/unit/files_test.ts15
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.