summaryrefslogtreecommitdiff
path: root/installer/test.ts
diff options
context:
space:
mode:
authorAxetroy <axetroy.dev@gmail.com>2019-06-19 12:22:01 +0800
committerRyan Dahl <ry@tinyclouds.org>2019-06-18 21:22:01 -0700
commitc85b1c06a9804ad41fbccf8fe5a5689f28eb049e (patch)
treee855fc7c02baaa219aa81a2a54a69b19c1fb3716 /installer/test.ts
parentd6e92582cc2267210f71e893b14672783301f87b (diff)
lint: add max line length rules (denoland/deno_std#507)
Original: https://github.com/denoland/deno_std/commit/b04fda30c8949b6347094b898bfa427c0b9a6162
Diffstat (limited to 'installer/test.ts')
-rw-r--r--installer/test.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/installer/test.ts b/installer/test.ts
index d28a9d448..1767464d4 100644
--- a/installer/test.ts
+++ b/installer/test.ts
@@ -68,6 +68,7 @@ installerTest(async function installBasic(): Promise<void> {
if (isWindows) {
assertEquals(
await fs.readFileStr(filePath + ".cmd"),
+ /* eslint-disable max-len */
`% This executable is generated by Deno. Please don't modify it unless you know what it means. %
@IF EXIST "%~dp0\deno.exe" (
"%~dp0\deno.exe" run http://localhost:4500/http/file_server.ts %*
@@ -77,11 +78,13 @@ installerTest(async function installBasic(): Promise<void> {
deno run http://localhost:4500/http/file_server.ts %*
)
`
+ /* eslint-enable max-len */
);
}
assertEquals(
await fs.readFileStr(filePath),
+ /* eslint-disable max-len */
`#/bin/sh
# This executable is generated by Deno. Please don't modify it unless you know what it means.
basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")
@@ -99,6 +102,7 @@ else
fi
exit $ret
`
+ /* eslint-enable max-len */
);
});
@@ -115,6 +119,7 @@ installerTest(async function installWithFlags(): Promise<void> {
if (isWindows) {
assertEquals(
await fs.readFileStr(filePath + ".cmd"),
+ /* eslint-disable max-len */
`% This executable is generated by Deno. Please don't modify it unless you know what it means. %
@IF EXIST "%~dp0\deno.exe" (
"%~dp0\deno.exe" run --allow-net --allow-read http://localhost:4500/http/file_server.ts --foobar %*
@@ -124,11 +129,13 @@ installerTest(async function installWithFlags(): Promise<void> {
deno run --allow-net --allow-read http://localhost:4500/http/file_server.ts --foobar %*
)
`
+ /* eslint-enable max-len */
);
}
assertEquals(
await fs.readFileStr(filePath),
+ /* eslint-disable max-len */
`#/bin/sh
# This executable is generated by Deno. Please don't modify it unless you know what it means.
basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")
@@ -146,6 +153,7 @@ else
fi
exit $ret
`
+ /* eslint-enable max-len */
);
});