diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /toml/parser_test.ts | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'toml/parser_test.ts')
| -rw-r--r-- | toml/parser_test.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/toml/parser_test.ts b/toml/parser_test.ts index 6cafb4b0d..03c733714 100644 --- a/toml/parser_test.ts +++ b/toml/parser_test.ts @@ -7,7 +7,7 @@ const testFilesDir = path.resolve("toml", "testdata"); test({ name: "[TOML] Strings", - fn() { + fn(): void { const expected = { strings: { str0: "deno", @@ -28,7 +28,7 @@ test({ test({ name: "[TOML] CRLF", - fn() { + fn(): void { const expected = { boolean: { bool1: true, bool2: false } }; const actual = parseFile(path.join(testFilesDir, "CRLF.toml")); assertEquals(actual, expected); @@ -37,7 +37,7 @@ test({ test({ name: "[TOML] Boolean", - fn() { + fn(): void { const expected = { boolean: { bool1: true, bool2: false } }; const actual = parseFile(path.join(testFilesDir, "boolean.toml")); assertEquals(actual, expected); @@ -46,7 +46,7 @@ test({ test({ name: "[TOML] Integer", - fn() { + fn(): void { const expected = { integer: { int1: 99, @@ -71,7 +71,7 @@ test({ test({ name: "[TOML] Float", - fn() { + fn(): void { const expected = { float: { flt1: 1.0, @@ -97,7 +97,7 @@ test({ test({ name: "[TOML] Arrays", - fn() { + fn(): void { const expected = { arrays: { data: [["gamma", "delta"], [1, 2]], @@ -111,7 +111,7 @@ test({ test({ name: "[TOML] Table", - fn() { + fn(): void { const expected = { deeply: { nested: { @@ -144,7 +144,7 @@ test({ test({ name: "[TOML] Simple", - fn() { + fn(): void { const expected = { deno: "is", not: "[node]", @@ -159,7 +159,7 @@ test({ test({ name: "[TOML] Datetime", - fn() { + fn(): void { const expected = { datetime: { odt1: new Date("1979-05-27T07:32:00Z"), @@ -178,7 +178,7 @@ test({ test({ name: "[TOML] Inline Table", - fn() { + fn(): void { const expected = { inlinetable: { nile: { @@ -223,7 +223,7 @@ test({ test({ name: "[TOML] Array of Tables", - fn() { + fn(): void { const expected = { bin: [ { name: "deno", path: "cli/main.rs" }, @@ -238,7 +238,7 @@ test({ test({ name: "[TOML] Cargo", - fn() { + fn(): void { /* eslint-disable @typescript-eslint/camelcase */ const expected = { workspace: { members: ["./", "core"] }, @@ -285,7 +285,7 @@ test({ test({ name: "[TOML] Stringify", - fn() { + fn(): void { const src = { foo: { bar: "deno" }, this: { is: { nested: "denonono" } }, |
