Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Aug 31, 2023
1 parent 9853607 commit 2a82987
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ expectError<FastifyStaticOptions>({
})

expectAssignable<FastifyStaticOptions>({
root: [''],
root: ['']
})

expectAssignable<FastifyStaticOptions>({
root: new URL(''),
root: new URL('')
})

expectAssignable<FastifyStaticOptions>({
root: [new URL('')],
root: [new URL('')]
})

appWithImplicitHttp
Expand Down Expand Up @@ -186,11 +186,11 @@ options.root = new URL('')

const URLRootApp = fastify()
URLRootApp.register(fastifyStatic, options)
.after(() => {
URLRootApp.get('/', (request, reply) => {
reply.send('<h1>fastify-static</h1>')
.after(() => {
URLRootApp.get('/', (request, reply) => {
reply.send('<h1>fastify-static</h1>')
})
})
})

const defaultIndexApp = fastify()
options.index = 'index.html'
Expand Down

0 comments on commit 2a82987

Please sign in to comment.