From 755ffa821a08d4bd0da4a768967796a6d528a34b Mon Sep 17 00:00:00 2001 From: Issei Horie Date: Sun, 2 Jul 2023 00:44:55 +0900 Subject: [PATCH] fix: follow updates on fastify --- test/print-routes.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/print-routes.test.js b/test/print-routes.test.js index 42ccd851..02789257 100644 --- a/test/print-routes.test.js +++ b/test/print-routes.test.js @@ -19,7 +19,7 @@ test('should print routes', async t => { await fastify.close() t.ok(spy.called) - t.same(spy.args, [['debug', '└── / (GET)\n / (HEAD)\n / (POST)\n']]) + t.same(spy.args, [['debug', '└── / (GET, HEAD, POST)\n']]) }) test('should print routes via cli', async t => { @@ -32,7 +32,7 @@ test('should print routes via cli', async t => { await command.cli(['./examples/plugin.js']) t.ok(spy.called) - t.same(spy.args, [['debug', '└── / (GET)\n / (HEAD)\n / (POST)\n']]) + t.same(spy.args, [['debug', '└── / (GET, HEAD, POST)\n']]) }) test('should warn on file not found', t => { @@ -109,5 +109,5 @@ test('should print routes of server with an async/await plugin', async t => { await fastify.close() t.ok(spy.called) - t.same(spy.args, [['debug', '└── / (GET)\n / (HEAD)\n']]) + t.same(spy.args, [['debug', '└── / (GET, HEAD)\n']]) })