From 8feb30e3258ed9690eb850e3ca22842b260a0403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 28 Apr 2020 12:33:09 +0200 Subject: BREAKING: remove overload of Deno.test() (#4951) This commit removes overload of Deno.test() that accepted named function. --- std/fs/read_file_str_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/fs/read_file_str_test.ts') diff --git a/std/fs/read_file_str_test.ts b/std/fs/read_file_str_test.ts index c652fe096..0671d8b92 100644 --- a/std/fs/read_file_str_test.ts +++ b/std/fs/read_file_str_test.ts @@ -4,14 +4,14 @@ import { readFileStrSync, readFileStr } from "./read_file_str.ts"; const testdataDir = path.resolve("fs", "testdata"); -Deno.test(function testReadFileSync(): void { +Deno.test("testReadFileSync", function (): void { const jsonFile = path.join(testdataDir, "json_valid_obj.json"); const strFile = readFileStrSync(jsonFile); assert(typeof strFile === "string"); assert(strFile.length > 0); }); -Deno.test(async function testReadFile(): Promise { +Deno.test("testReadFile", async function (): Promise { const jsonFile = path.join(testdataDir, "json_valid_obj.json"); const strFile = await readFileStr(jsonFile); assert(typeof strFile === "string"); -- cgit v1.2.3