From 5bc72d8293f289d1d48c095e584c1468cc966266 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2019 23:35:58 +0000 Subject: [PATCH 1/2] chore(package): update standard to version 14.0.2 Closes #33 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f656413..93d01dc 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "fastify": "^2.4.1", "pre-commit": "^1.2.2", "snazzy": "^8.0.0", - "standard": "^13.0.1", + "standard": "^14.0.2", "tap": "^12.7.0" }, "dependencies": { From 9f92360b50520877748dd84dbb5da47c218f3e3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20F=C3=A4cke?= Date: Tue, 27 Aug 2019 17:05:01 +0200 Subject: [PATCH 2/2] fix linting errors for standard@14 --- test/router.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/router.js b/test/router.js index 4d73617..554164b 100644 --- a/test/router.js +++ b/test/router.js @@ -107,7 +107,7 @@ test('Should expose websocket and http route', t => { }) }) -test(`Should close on unregistered path`, t => { +test('Should close on unregistered path', t => { t.plan(2) const fastify = Fastify() @@ -138,7 +138,7 @@ test(`Should close on unregistered path`, t => { }) }) -test(`Should throw on wrong HTTP method`, t => { +test('Should throw on wrong HTTP method', t => { t.plan(2) const fastify = Fastify() @@ -185,7 +185,7 @@ test('Should throw on invalid wsHandler', t => { }) }) -test(`Should open on registered path`, t => { +test('Should open on registered path', t => { t.plan(2) const fastify = Fastify() @@ -217,7 +217,7 @@ test(`Should open on registered path`, t => { }) }) -test(`Should send message and close`, t => { +test('Should send message and close', t => { t.plan(5) const fastify = Fastify() @@ -257,7 +257,7 @@ test(`Should send message and close`, t => { }) }) -test(`Should return 404 on http request`, t => { +test('Should return 404 on http request', t => { const fastify = Fastify() t.tearDown(() => fastify.close())