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 {
131131 t . is ( pool . idleCount , 1 ) ;
132132 } ) ;
133133
134- test ( clientName + ': query method ' , async ( t ) => {
134+ test ( clientName + ': connection. query() returns expected results ' , async ( t ) => {
135135 const pool = new Pool ( {
136136 user : 'postgres' ,
137137 } ) ;
@@ -153,7 +153,7 @@ for (const {
153153 } ) ;
154154 } ) ;
155155
156- test ( clientName + ': query method with parameters' , async ( t ) => {
156+ test ( clientName + ': connection. query() interpolates parameters' , async ( t ) => {
157157 const pool = new Pool ( {
158158 user : 'postgres' ,
159159 } ) ;
@@ -164,17 +164,10 @@ for (const {
164164 'foo' ,
165165 ] ) ;
166166
167- t . is ( result . rows . length , 1 ) ;
168- t . is ( result . command , 'SELECT' ) ;
169167 t . like ( result . rows [ 0 ] ,
170168 {
171169 '?column?' : 'foo' ,
172170 } ) ;
173- t . like ( result . fields [ 0 ] ,
174- {
175- dataTypeID : 25 ,
176- name : '?column?' ,
177- } ) ;
178171 } ) ;
179172
180173 test ( clientName + ': _clients returns all active connections' , async ( t ) => {
You can’t perform that action at this time.
0 commit comments