@@ -31,10 +31,7 @@ test('fastify postgress useTransaction route option', t => {
3131 reply . send ( 'complete' )
3232 } )
3333
34- await fastify . inject ( {
35- method : 'GET' ,
36- url : '/pass'
37- } )
34+ await fastify . inject ( { url : '/pass' } )
3835
3936 const response = await fastify . inject ( {
4037 method : 'GET' ,
@@ -67,10 +64,7 @@ test('fastify postgress useTransaction route option', t => {
6764 reply . send ( 'complete' )
6865 } )
6966
70- await fastify . inject ( {
71- method : 'GET' ,
72- url : '/pass'
73- } )
67+ await fastify . inject ( { url : '/pass' } )
7468
7569 const response = await fastify . inject ( {
7670 method : 'GET' ,
@@ -102,10 +96,7 @@ test('fastify postgress useTransaction route option', t => {
10296 reply . send ( 'complete' )
10397 } )
10498
105- await fastify . inject ( {
106- method : 'GET' ,
107- url : '/fail'
108- } )
99+ await fastify . inject ( { url : '/fail' } )
109100
110101 const response = await fastify . inject ( {
111102 method : 'GET' ,
@@ -133,10 +124,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
133124 t . is ( req . pg , null )
134125 } )
135126
136- fastify . inject ( {
137- method : 'GET' ,
138- url : '/'
139- } )
127+ fastify . inject ( { url : '/' } )
140128 } )
141129 test ( 'name set and transact not set' , t => {
142130 t . plan ( 1 )
@@ -153,10 +141,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
153141 t . is ( req . pg , null )
154142 } )
155143
156- fastify . inject ( {
157- method : 'GET' ,
158- url : '/'
159- } )
144+ fastify . inject ( { url : '/' } )
160145 } )
161146 test ( 'name set and transact set to true' , t => {
162147 t . plan ( 1 )
@@ -173,10 +158,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
173158 t . is ( req . pg , null )
174159 } )
175160
176- fastify . inject ( {
177- method : 'GET' ,
178- url : '/'
179- } )
161+ fastify . inject ( { url : '/' } )
180162 } )
181163 test ( 'name not set and transact set to string' , t => {
182164 t . plan ( 1 )
@@ -192,10 +174,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
192174 t . is ( req . pg , null )
193175 } )
194176
195- fastify . inject ( {
196- method : 'GET' ,
197- url : '/'
198- } )
177+ fastify . inject ( { url : '/' } )
199178 } )
200179 test ( 'name and transact set to different strings' , t => {
201180 t . plan ( 1 )
@@ -212,10 +191,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
212191 t . is ( req . pg , null )
213192 } )
214193
215- fastify . inject ( {
216- method : 'GET' ,
217- url : '/'
218- } )
194+ fastify . inject ( { url : '/' } )
219195 } )
220196 t . end ( )
221197} )
0 commit comments