Skip to content

Commit 2c120c2

Browse files
committed
test: emphasize whats being tested
1 parent ed6b822 commit 2c120c2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/slonik-dataloaders/src/factories/createConnectionLoaderClass.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('createConnectionLoaderClass', () => {
128128
expect(result.edges[9].node.id).toEqual(1);
129129
});
130130

131-
it('loads records with multiple order by expressions', async () => {
131+
it('loads records with multiple ORDER BY expressions', async () => {
132132
const loader = new PersonConnectionLoader(pool, {});
133133
const result = await loader.load({
134134
orderBy: ({ uid, name }) => [
@@ -140,7 +140,7 @@ describe('createConnectionLoaderClass', () => {
140140
expect(getNodeIds(result.edges)).toEqual([2, 1, 4, 3, 6, 5, 8, 7, 10, 9]);
141141
});
142142

143-
it('loads records with complex order by expression', async () => {
143+
it('loads records with complex ORDER BY expression', async () => {
144144
const loader = new PersonConnectionLoader(pool, {});
145145
const result = await loader.load({
146146
orderBy: ({ uid }) => [[sql.fragment`${uid}`, 'ASC']],
@@ -149,7 +149,7 @@ describe('createConnectionLoaderClass', () => {
149149
expect(getNodeIds(result.edges)).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
150150
});
151151

152-
it('loads records with where expression', async () => {
152+
it('loads records with WHERE expression', async () => {
153153
const loader = new PersonConnectionLoader(pool, {});
154154
const result = await loader.load({
155155
where: ({ name }) => sql.fragment`${name} = 'eee'`,
@@ -158,7 +158,7 @@ describe('createConnectionLoaderClass', () => {
158158
expect(getNodeIds(result.edges)).toEqual([9, 10]);
159159
});
160160

161-
it('loads records with limit', async () => {
161+
it('loads records with LIMIT', async () => {
162162
const loader = new PersonConnectionLoader(pool, {});
163163
const result = await loader.load({
164164
limit: 4,
@@ -168,7 +168,7 @@ describe('createConnectionLoaderClass', () => {
168168
expect(getNodeIds(result.edges)).toEqual([1, 2, 3, 4]);
169169
});
170170

171-
it('loads records with limit and offset', async () => {
171+
it('loads records with LIMIT and OFFSET', async () => {
172172
const loader = new PersonConnectionLoader(pool, {});
173173
const result = await loader.load({
174174
limit: 4,
@@ -366,7 +366,7 @@ describe('createConnectionLoaderClass', () => {
366366
expect(results[1].edges.length).toEqual(0);
367367
});
368368

369-
it('gets a mix of count and edges', async () => {
369+
it('gets a mix of count and edges (batch)', async () => {
370370
const loader = new PersonConnectionLoader(pool, {});
371371

372372
const results = await Promise.all([

0 commit comments

Comments
 (0)