From 2750f8a9bec829cbd6ae0510a82f86f43d2e15fa Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Wed, 3 May 2023 08:51:06 +0200 Subject: [PATCH] Updated test to latest router Signed-off-by: Matteo Collina --- 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']]) })