Skip to content

Commit c83ac4a

Browse files
committed
lint
Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com>
1 parent e606b1f commit c83ac4a

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

test/spec/openapi/route.js

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ test('openapi should return a valid swagger object', async (t) => {
2727

2828
await fastify.register(fastifySwagger, openapiOption)
2929

30-
fastify.get('/', () => { })
31-
fastify.post('/', () => { })
32-
fastify.get('/example', schemaQuerystring, () => { })
33-
fastify.post('/example', schemaBody, () => { })
34-
fastify.get('/parameters/:id', schemaParams, () => { })
35-
fastify.get('/headers', schemaHeaders, () => { })
36-
fastify.get('/headers/:id', schemaHeadersParams, () => { })
37-
fastify.get('/security', schemaSecurity, () => { })
30+
fastify.get('/', () => {})
31+
fastify.post('/', () => {})
32+
fastify.get('/example', schemaQuerystring, () => {})
33+
fastify.post('/example', schemaBody, () => {})
34+
fastify.get('/parameters/:id', schemaParams, () => {})
35+
fastify.get('/headers', schemaHeaders, () => {})
36+
fastify.get('/headers/:id', schemaHeadersParams, () => {})
37+
fastify.get('/security', schemaSecurity, () => {})
3838

3939
await fastify.ready()
4040

@@ -51,14 +51,14 @@ test('openapi should return a valid swagger yaml', async (t) => {
5151

5252
await fastify.register(fastifySwagger, openapiOption)
5353

54-
fastify.get('/', () => { })
55-
fastify.post('/', () => { })
56-
fastify.get('/example', schemaQuerystring, () => { })
57-
fastify.post('/example', schemaBody, () => { })
58-
fastify.get('/parameters/:id', schemaParams, () => { })
59-
fastify.get('/headers', schemaHeaders, () => { })
60-
fastify.get('/headers/:id', schemaHeadersParams, () => { })
61-
fastify.get('/security', schemaSecurity, () => { })
54+
fastify.get('/', () => {})
55+
fastify.post('/', () => {})
56+
fastify.get('/example', schemaQuerystring, () => {})
57+
fastify.post('/example', schemaBody, () => {})
58+
fastify.get('/parameters/:id', schemaParams, () => {})
59+
fastify.get('/headers', schemaHeaders, () => {})
60+
fastify.get('/headers/:id', schemaHeadersParams, () => {})
61+
fastify.get('/security', schemaSecurity, () => {})
6262

6363
await fastify.ready()
6464

@@ -92,7 +92,7 @@ test('route options - deprecated', async (t) => {
9292
}
9393
}
9494

95-
fastify.post('/', opts, () => { })
95+
fastify.post('/', opts, () => {})
9696

9797
await fastify.ready()
9898

@@ -127,7 +127,7 @@ test('route options - meta', async (t) => {
127127
}
128128
}
129129

130-
fastify.get('/', opts, () => { })
130+
fastify.get('/', opts, () => {})
131131

132132
await fastify.ready()
133133

@@ -150,7 +150,7 @@ test('route options - produces', async (t) => {
150150

151151
await fastify.register(fastifySwagger, openapiOption)
152152

153-
fastify.get('/', schemaProduces, () => { })
153+
fastify.get('/', schemaProduces, () => {})
154154

155155
await fastify.ready()
156156

@@ -182,7 +182,7 @@ test('route options - cookies', async (t) => {
182182

183183
await fastify.register(fastifySwagger, openapiOption)
184184

185-
fastify.get('/', schemaCookies, () => { })
185+
fastify.get('/', schemaCookies, () => {})
186186

187187
await fastify.ready()
188188

@@ -206,7 +206,7 @@ test('route options - extension', async (t) => {
206206
t.plan(4)
207207
const fastify = Fastify()
208208
await fastify.register(fastifySwagger, { openapi: { 'x-ternal': true } })
209-
fastify.get('/', schemaExtension, () => { })
209+
fastify.get('/', schemaExtension, () => {})
210210

211211
await fastify.ready()
212212

@@ -246,7 +246,7 @@ test('route options - websocket', async (t) => {
246246
websocket: true
247247
}
248248

249-
fastify.get('/', opts, () => { })
249+
fastify.get('/', opts, () => {})
250250

251251
await fastify.ready()
252252

@@ -261,7 +261,7 @@ test('parses form parameters when all api consumes application/x-www-form-urlenc
261261
t.plan(2)
262262
const fastify = Fastify()
263263
await fastify.register(fastifySwagger, openapiOption)
264-
fastify.post('/', schemaConsumes, () => { })
264+
fastify.post('/', schemaConsumes, () => {})
265265

266266
await fastify.ready()
267267

@@ -348,9 +348,9 @@ test('cookie, query, path description', async (t) => {
348348
}
349349
}
350350

351-
fastify.get('/', schemaCookies, () => { })
352-
fastify.get('/example', schemaQuerystring, () => { })
353-
fastify.get('/parameters/:id', schemaParams, () => { })
351+
fastify.get('/', schemaCookies, () => {})
352+
fastify.get('/example', schemaQuerystring, () => {})
353+
fastify.get('/parameters/:id', schemaParams, () => {})
354354

355355
await fastify.ready()
356356

@@ -449,8 +449,8 @@ test('cookie and query with serialization type', async (t) => {
449449
}
450450
}
451451

452-
fastify.get('/', schemaCookies, () => { })
453-
fastify.get('/example', schemaQuerystring, () => { })
452+
fastify.get('/', schemaCookies, () => {})
453+
fastify.get('/example', schemaQuerystring, () => {})
454454

455455
await fastify.ready()
456456

@@ -509,7 +509,7 @@ test('openapi should pass through operationId', async (t) => {
509509

510510
await fastify.register(fastifySwagger, openapiOption)
511511

512-
fastify.get('/hello', schemaOperationId, () => { })
512+
fastify.get('/hello', schemaOperationId, () => {})
513513

514514
await fastify.ready()
515515

@@ -560,7 +560,7 @@ test('openapi should pass through Links', async (t) => {
560560
}
561561
}
562562
}
563-
}, () => { })
563+
}, () => {})
564564

565565
fastify.get('/user/:id/address', {
566566
schema: {
@@ -581,7 +581,7 @@ test('openapi should pass through Links', async (t) => {
581581
}
582582
}
583583
}
584-
}, () => { })
584+
}, () => {})
585585

586586
await fastify.ready()
587587

@@ -641,7 +641,7 @@ test('links without status code', async (t) => {
641641
}
642642
}
643643
}
644-
}, () => { })
644+
}, () => {})
645645

646646
fastify.get('/user/:id/address', {
647647
schema: {
@@ -662,7 +662,7 @@ test('links without status code', async (t) => {
662662
}
663663
}
664664
}
665-
}, () => { })
665+
}, () => {})
666666

667667
await fastify.ready()
668668

@@ -695,7 +695,7 @@ test('security headers ignored when declared in security and securityScheme', as
695695
}
696696
}
697697
}
698-
}, () => { })
698+
}, () => {})
699699

700700
fastify.get('/address2/:id', {
701701
schema: {
@@ -713,7 +713,7 @@ test('security headers ignored when declared in security and securityScheme', as
713713
}
714714
}
715715
}
716-
}, () => { })
716+
}, () => {})
717717

718718
await fastify.ready()
719719

@@ -765,7 +765,7 @@ test('security querystrings ignored when declared in security and securityScheme
765765
}
766766
}
767767
}
768-
}, () => { })
768+
}, () => {})
769769

770770
fastify.get('/address2/:id', {
771771
schema: {
@@ -783,7 +783,7 @@ test('security querystrings ignored when declared in security and securityScheme
783783
}
784784
}
785785
}
786-
}, () => { })
786+
}, () => {})
787787

788788
await fastify.ready()
789789

@@ -835,7 +835,7 @@ test('security cookies ignored when declared in security and securityScheme', as
835835
}
836836
}
837837
}
838-
}, () => { })
838+
}, () => {})
839839

840840
fastify.get('/address2/:id', {
841841
schema: {
@@ -853,7 +853,7 @@ test('security cookies ignored when declared in security and securityScheme', as
853853
}
854854
}
855855
}
856-
}, () => { })
856+
}, () => {})
857857

858858
await fastify.ready()
859859

@@ -884,7 +884,7 @@ test('path params on relative url', async (t) => {
884884
}
885885
}
886886
}
887-
fastify.get('/parameters/:id', schemaParams, () => { })
887+
fastify.get('/parameters/:id', schemaParams, () => {})
888888

889889
await fastify.ready()
890890

@@ -913,7 +913,7 @@ test('verify generated path param definition with route prefixing', async (t) =>
913913

914914
await fastify.register(fastifySwagger, openapiRelativeOptions)
915915
await fastify.register(function (app, _, done) {
916-
app.get('/:userId', opts, () => { })
916+
app.get('/:userId', opts, () => {})
917917

918918
done()
919919
}, { prefix: '/v1' })

0 commit comments

Comments
 (0)