aboutsummaryrefslogtreecommitdiff
path: root/e2e/lib/TestServer.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:28:14 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 10:48:39 +0900
commit029d5365e7d74e87375fccb8db097b7c2df3f7f4 (patch)
tree6a24c719da9c60461c7e2fe120b0d42af9e580f2 /e2e/lib/TestServer.ts
parentd72012529bcd820598fa64e1aa20dab1c16acaa5 (diff)
npm run lint:fix
Diffstat (limited to 'e2e/lib/TestServer.ts')
-rw-r--r--e2e/lib/TestServer.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/e2e/lib/TestServer.ts b/e2e/lib/TestServer.ts
index c010e37..5b9eee3 100644
--- a/e2e/lib/TestServer.ts
+++ b/e2e/lib/TestServer.ts
@@ -28,12 +28,12 @@ export default class TestServer {
return this;
}
- url(path: string = '/'): string {
+ url(path = '/'): string {
if (!this.http) {
throw new Error('http server not started');
}
- let addr = this.http.address() as net.AddressInfo;
+ const addr = this.http.address() as net.AddressInfo;
return `http://${addr.address}:${addr.port}${path}`
}