From 54bee859de0dbe74e9f7e069ab0732fd4ae6cc75 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Tue, 6 Apr 2021 09:35:52 +0200 Subject: [PATCH] feat: move to tap15 --- .taprc | 1 - package.json | 2 +- test.js | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.taprc b/.taprc index 43f9ae2..3cde38b 100644 --- a/.taprc +++ b/.taprc @@ -1,4 +1,3 @@ -esm: false ts: false jsx: false flow: false diff --git a/package.json b/package.json index fed1097..608dc75 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "request": "^2.88.0", "snazzy": "^9.0.0", "standard": "^16.0.0", - "tap": "^14.10.7", + "tap": "^15.0.2", "typescript": "^4.0.2", "tsd": "^0.14.0" }, diff --git a/test.js b/test.js index 7333923..67fb223 100644 --- a/test.js +++ b/test.js @@ -95,7 +95,7 @@ test('accept header', t => { const fastify = Fastify() fastify.register(plugin, { decorateReply: true }) - t.tearDown(fastify.close.bind(fastify)) + t.teardown(fastify.close.bind(fastify)) fastify.get('/request', function (req, reply) { reply.send({ @@ -150,6 +150,6 @@ test('no reply decorator', async function (t) { ] for (const method of methodNames) { - t.is(fastify.hasReplyDecorator('request' + method, false), false) + t.equal(fastify.hasReplyDecorator('request' + method, false), false) } })