From c4d5b01acfe0cac31f94743a57e8e619178ba563 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 25 Aug 2020 09:43:54 +1000 Subject: feat: update to TypeScript 4.0 (#6514) --- std/encoding/toml_test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'std/encoding/toml_test.ts') diff --git a/std/encoding/toml_test.ts b/std/encoding/toml_test.ts index 565fe1eeb..9b5e1a56b 100644 --- a/std/encoding/toml_test.ts +++ b/std/encoding/toml_test.ts @@ -6,7 +6,7 @@ import { parse, stringify } from "./toml.ts"; const testFilesDir = path.resolve("encoding", "testdata"); -function parseFile(filePath: string): object { +function parseFile(filePath: string): Record { if (!existsSync(filePath)) { throw new Error(`File not found: ${filePath}`); } @@ -254,7 +254,6 @@ Deno.test({ Deno.test({ name: "[TOML] Cargo", fn(): void { - /* eslint-disable @typescript-eslint/camelcase */ const expected = { workspace: { members: ["./", "core"] }, bin: [{ name: "deno", path: "cli/main.rs" }], @@ -291,7 +290,6 @@ Deno.test({ }, target: { "cfg(windows)": { dependencies: { winapi: "0.3.6" } } }, }; - /* eslint-enable @typescript-eslint/camelcase */ const actual = parseFile(path.join(testFilesDir, "cargo.toml")); assertEquals(actual, expected); }, -- cgit v1.2.3