@@ -128,7 +128,7 @@ describe('createConnectionLoaderClass', () => {
128
128
expect ( result . edges [ 9 ] . node . id ) . toEqual ( 1 ) ;
129
129
} ) ;
130
130
131
- it ( 'loads records with multiple order by expressions' , async ( ) => {
131
+ it ( 'loads records with multiple ORDER BY expressions' , async ( ) => {
132
132
const loader = new PersonConnectionLoader ( pool , { } ) ;
133
133
const result = await loader . load ( {
134
134
orderBy : ( { uid, name } ) => [
@@ -140,7 +140,7 @@ describe('createConnectionLoaderClass', () => {
140
140
expect ( getNodeIds ( result . edges ) ) . toEqual ( [ 2 , 1 , 4 , 3 , 6 , 5 , 8 , 7 , 10 , 9 ] ) ;
141
141
} ) ;
142
142
143
- it ( 'loads records with complex order by expression' , async ( ) => {
143
+ it ( 'loads records with complex ORDER BY expression' , async ( ) => {
144
144
const loader = new PersonConnectionLoader ( pool , { } ) ;
145
145
const result = await loader . load ( {
146
146
orderBy : ( { uid } ) => [ [ sql . fragment `${ uid } ` , 'ASC' ] ] ,
@@ -149,7 +149,7 @@ describe('createConnectionLoaderClass', () => {
149
149
expect ( getNodeIds ( result . edges ) ) . toEqual ( [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ] ) ;
150
150
} ) ;
151
151
152
- it ( 'loads records with where expression' , async ( ) => {
152
+ it ( 'loads records with WHERE expression' , async ( ) => {
153
153
const loader = new PersonConnectionLoader ( pool , { } ) ;
154
154
const result = await loader . load ( {
155
155
where : ( { name } ) => sql . fragment `${ name } = 'eee'` ,
@@ -158,7 +158,7 @@ describe('createConnectionLoaderClass', () => {
158
158
expect ( getNodeIds ( result . edges ) ) . toEqual ( [ 9 , 10 ] ) ;
159
159
} ) ;
160
160
161
- it ( 'loads records with limit ' , async ( ) => {
161
+ it ( 'loads records with LIMIT ' , async ( ) => {
162
162
const loader = new PersonConnectionLoader ( pool , { } ) ;
163
163
const result = await loader . load ( {
164
164
limit : 4 ,
@@ -168,7 +168,7 @@ describe('createConnectionLoaderClass', () => {
168
168
expect ( getNodeIds ( result . edges ) ) . toEqual ( [ 1 , 2 , 3 , 4 ] ) ;
169
169
} ) ;
170
170
171
- it ( 'loads records with limit and offset ' , async ( ) => {
171
+ it ( 'loads records with LIMIT and OFFSET ' , async ( ) => {
172
172
const loader = new PersonConnectionLoader ( pool , { } ) ;
173
173
const result = await loader . load ( {
174
174
limit : 4 ,
@@ -366,7 +366,7 @@ describe('createConnectionLoaderClass', () => {
366
366
expect ( results [ 1 ] . edges . length ) . toEqual ( 0 ) ;
367
367
} ) ;
368
368
369
- it ( 'gets a mix of count and edges' , async ( ) => {
369
+ it ( 'gets a mix of count and edges (batch) ' , async ( ) => {
370
370
const loader = new PersonConnectionLoader ( pool , { } ) ;
371
371
372
372
const results = await Promise . all ( [
0 commit comments