File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ for (const {
131
131
t . is ( pool . idleCount , 1 ) ;
132
132
} ) ;
133
133
134
- test ( clientName + ': query method ' , async ( t ) => {
134
+ test ( clientName + ': connection. query() returns expected results ' , async ( t ) => {
135
135
const pool = new Pool ( {
136
136
user : 'postgres' ,
137
137
} ) ;
@@ -153,7 +153,7 @@ for (const {
153
153
} ) ;
154
154
} ) ;
155
155
156
- test ( clientName + ': query method with parameters' , async ( t ) => {
156
+ test ( clientName + ': connection. query() interpolates parameters' , async ( t ) => {
157
157
const pool = new Pool ( {
158
158
user : 'postgres' ,
159
159
} ) ;
@@ -164,17 +164,10 @@ for (const {
164
164
'foo' ,
165
165
] ) ;
166
166
167
- t . is ( result . rows . length , 1 ) ;
168
- t . is ( result . command , 'SELECT' ) ;
169
167
t . like ( result . rows [ 0 ] ,
170
168
{
171
169
'?column?' : 'foo' ,
172
170
} ) ;
173
- t . like ( result . fields [ 0 ] ,
174
- {
175
- dataTypeID : 25 ,
176
- name : '?column?' ,
177
- } ) ;
178
171
} ) ;
179
172
180
173
test ( clientName + ': _clients returns all active connections' , async ( t ) => {
You can’t perform that action at this time.
0 commit comments