diff options
author | Axetroy <axetroy.dev@gmail.com> | 2019-06-19 12:22:01 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-18 21:22:01 -0700 |
commit | c85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch) | |
tree | e855fc7c02baaa219aa81a2a54a69b19c1fb3716 /testing/format_test.ts | |
parent | d6e92582cc2267210f71e893b14672783301f87b (diff) |
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
Diffstat (limited to 'testing/format_test.ts')
-rw-r--r-- | testing/format_test.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/format_test.ts b/testing/format_test.ts index 0601a5db2..39884d484 100644 --- a/testing/format_test.ts +++ b/testing/format_test.ts @@ -10,6 +10,7 @@ import { test } from "./mod.ts"; import { assertEquals } from "../testing/asserts.ts"; import { format } from "./format.ts"; +// eslint-disable-next-line max-len // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-explicit-any function returnArguments(...args: any[]): IArguments { return arguments; @@ -385,7 +386,8 @@ test({ val.prop = "value1"; assertEquals( format(val), - 'Object {\n "prop": "value1",\n Symbol(symbol1): "value2",\n Symbol(symbol2): "value3",\n}' + 'Object {\n "prop": "value1",\n Symbol(symbol1): "value2",\n ' + + 'Symbol(symbol2): "value3",\n}' ); } }); @@ -607,7 +609,8 @@ test({ const val = { prop: { prop: { prop: "value" } } }; assertEquals( format(val), - 'Object {\n "prop": Object {\n "prop": Object {\n "prop": "value",\n },\n },\n}' + 'Object {\n "prop": Object {\n "prop": Object {\n "prop": ' + + '"value",\n },\n },\n}' ); } }); |