Skip to content

Commit

Permalink
Fix expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Jul 6, 2023
1 parent 121fdbd commit d8892bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"scripts": {
"lint": "standard",
"lint:fix": "standard --fix",
"unit:template-ts-esm": " cross-env TS_NODE_PROJECT=./templates/app-ts-esm/tsconfig.json tap templates/app-ts-esm/test/**/*.test.ts --no-coverage --node-arg=--loader=ts-node/esm --timeout 100",
"unit:cli": "tap \"test/**/*.test.{js,ts}\" --no-coverage --timeout 200",
"unit:templates-without-ts-esm": "tap \"templates/app/**/*.test.js\" \"templates/app-esm/**/*.test.js\" \"templates/app-ts/**/*.test.ts\" --no-coverage --timeout 200",
"unit:template-ts-esm": " cross-env TS_NODE_PROJECT=./templates/app-ts-esm/tsconfig.json tap templates/app-ts-esm/test/**/*.test.ts --no-coverage --node-arg=--loader=ts-node/esm --timeout 100 --color",
"unit:cli": "tap \"test/**/*.test.{js,ts}\" --no-coverage --jobs=1 --timeout 400 --color",
"unit:templates-without-ts-esm": "tap \"templates/app/**/*.test.js\" \"templates/app-esm/**/*.test.js\" \"templates/app-ts/**/*.test.ts\" --no-coverage --timeout 200 --color",
"pretest": "xcopy /e /k /i . \"..\\node_modules\\fastify-cli\" || rsync -r --exclude=node_modules ./ node_modules/fastify-cli || echo 'this is fine'",
"test-no-coverage": "npm run unit:cli && npm run unit:templates-without-ts-esm && npm run unit:template-ts-esm && npm run test:typescript",
"test": "c8 --clean npm run test-no-coverage",
Expand Down
6 changes: 3 additions & 3 deletions test/print-routes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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 => {
Expand Down Expand Up @@ -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']])
})

0 comments on commit d8892bc

Please sign in to comment.