Skip to content

Commit

Permalink
Fix unit tests (#324)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jul 21, 2022
1 parent ce4b768 commit 0fdd6fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/static.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1642,7 +1642,7 @@ t.test('with fastify-compress', t => {
})
})
t.test('register /static/ with schemaHide true', t => {
t.plan(5)
t.plan(4)

const pluginOptions = {
root: path.join(__dirname, '/static'),
Expand Down Expand Up @@ -1682,7 +1682,7 @@ t.test('register /static/ with schemaHide true', t => {
})

t.test('register /static/ with schemaHide false', t => {
t.plan(5)
t.plan(4)

const pluginOptions = {
root: path.join(__dirname, '/static'),
Expand Down Expand Up @@ -1722,7 +1722,7 @@ t.test('register /static/ with schemaHide false', t => {
})

t.test('register /static/ without schemaHide', t => {
t.plan(5)
t.plan(4)

const pluginOptions = {
root: path.join(__dirname, '/static'),
Expand Down Expand Up @@ -2769,7 +2769,7 @@ t.test('inject support', async (t) => {
})

t.test('routes should use custom errorHandler premature stream close', t => {
t.plan(5)
t.plan(4)

const pluginOptions = {
root: path.join(__dirname, '/static'),
Expand Down Expand Up @@ -2804,7 +2804,7 @@ t.test('routes should use custom errorHandler premature stream close', t => {
})

t.test('routes should fallback to default errorHandler', t => {
t.plan(5)
t.plan(4)

const pluginOptions = {
root: path.join(__dirname, '/static'),
Expand Down

0 comments on commit 0fdd6fe

Please sign in to comment.