summaryrefslogtreecommitdiff
path: root/std/fs/write_file_str_test.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-11 17:24:27 +0100
committerGitHub <noreply@github.com>2020-02-11 17:24:27 +0100
commit61273085e40fb4d992eef4b1b5601e3567c80664 (patch)
tree1ac0f401d4cb897bdb6f88e3a5c47fece2856f89 /std/fs/write_file_str_test.ts
parente0bcecee6042b219c6626172851af5a25362b948 (diff)
refactor: rewrite tests in std/ to use Deno.test (#3930)
Diffstat (limited to 'std/fs/write_file_str_test.ts')
-rw-r--r--std/fs/write_file_str_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/fs/write_file_str_test.ts b/std/fs/write_file_str_test.ts
index f9cf760fe..279afe3d1 100644
--- a/std/fs/write_file_str_test.ts
+++ b/std/fs/write_file_str_test.ts
@@ -1,11 +1,10 @@
-import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
import * as path from "../path/mod.ts";
import { writeFileStr, writeFileStrSync } from "./write_file_str.ts";
const testdataDir = path.resolve("fs", "testdata");
-test(function testReadFileSync(): void {
+Deno.test(function testReadFileSync(): void {
const jsonFile = path.join(testdataDir, "write_file_1.json");
const content = "write_file_str_test";
writeFileStrSync(jsonFile, content);
@@ -21,7 +20,7 @@ test(function testReadFileSync(): void {
assertEquals(content, result);
});
-test(async function testReadFile(): Promise<void> {
+Deno.test(async function testReadFile(): Promise<void> {
const jsonFile = path.join(testdataDir, "write_file_2.json");
const content = "write_file_str_test";
await writeFileStr(jsonFile, content);