@@ -31,10 +31,7 @@ test('fastify postgress useTransaction route option', t => {
31
31
reply . send ( 'complete' )
32
32
} )
33
33
34
- await fastify . inject ( {
35
- method : 'GET' ,
36
- url : '/pass'
37
- } )
34
+ await fastify . inject ( { url : '/pass' } )
38
35
39
36
const response = await fastify . inject ( {
40
37
method : 'GET' ,
@@ -67,10 +64,7 @@ test('fastify postgress useTransaction route option', t => {
67
64
reply . send ( 'complete' )
68
65
} )
69
66
70
- await fastify . inject ( {
71
- method : 'GET' ,
72
- url : '/pass'
73
- } )
67
+ await fastify . inject ( { url : '/pass' } )
74
68
75
69
const response = await fastify . inject ( {
76
70
method : 'GET' ,
@@ -102,10 +96,7 @@ test('fastify postgress useTransaction route option', t => {
102
96
reply . send ( 'complete' )
103
97
} )
104
98
105
- await fastify . inject ( {
106
- method : 'GET' ,
107
- url : '/fail'
108
- } )
99
+ await fastify . inject ( { url : '/fail' } )
109
100
110
101
const response = await fastify . inject ( {
111
102
method : 'GET' ,
@@ -133,10 +124,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
133
124
t . is ( req . pg , null )
134
125
} )
135
126
136
- fastify . inject ( {
137
- method : 'GET' ,
138
- url : '/'
139
- } )
127
+ fastify . inject ( { url : '/' } )
140
128
} )
141
129
test ( 'name set and transact not set' , t => {
142
130
t . plan ( 1 )
@@ -153,10 +141,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
153
141
t . is ( req . pg , null )
154
142
} )
155
143
156
- fastify . inject ( {
157
- method : 'GET' ,
158
- url : '/'
159
- } )
144
+ fastify . inject ( { url : '/' } )
160
145
} )
161
146
test ( 'name set and transact set to true' , t => {
162
147
t . plan ( 1 )
@@ -173,10 +158,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
173
158
t . is ( req . pg , null )
174
159
} )
175
160
176
- fastify . inject ( {
177
- method : 'GET' ,
178
- url : '/'
179
- } )
161
+ fastify . inject ( { url : '/' } )
180
162
} )
181
163
test ( 'name not set and transact set to string' , t => {
182
164
t . plan ( 1 )
@@ -192,10 +174,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
192
174
t . is ( req . pg , null )
193
175
} )
194
176
195
- fastify . inject ( {
196
- method : 'GET' ,
197
- url : '/'
198
- } )
177
+ fastify . inject ( { url : '/' } )
199
178
} )
200
179
test ( 'name and transact set to different strings' , t => {
201
180
t . plan ( 1 )
@@ -212,10 +191,7 @@ test('combinations of registrationOptions.name and routeOptions.pg.transact that
212
191
t . is ( req . pg , null )
213
192
} )
214
193
215
- fastify . inject ( {
216
- method : 'GET' ,
217
- url : '/'
218
- } )
194
+ fastify . inject ( { url : '/' } )
219
195
} )
220
196
t . end ( )
221
197
} )
0 commit comments