Skip to content

Commit c9f89ad

Browse files
author
Phil Gates-Idem
committed
Fix test after removing default query limit
1 parent 466634a commit c9f89ad

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/index.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as AWS from 'aws-sdk';
22
import { v4 as uuid } from 'uuid';
33
import DynamoDbDao from '.';
44
import mockLogger from '../test/helpers/mockLogger';
5-
import { DEFAULT_QUERY_LIMIT } from './constants';
65
import { CountOutput } from './types';
76
import { generateUpdateParams } from './update/generateUpdateParams';
87

@@ -211,7 +210,6 @@ test(`#query should have default query limit`, async () => {
211210
expect(documentClient.query).toHaveBeenCalledWith({
212211
TableName: tableName,
213212
IndexName: index,
214-
Limit: DEFAULT_QUERY_LIMIT,
215213
ExclusiveStartKey: undefined,
216214
KeyConditionExpression: keyConditionExpression,
217215
ExpressionAttributeValues: attributeValues,
@@ -509,7 +507,6 @@ test('#scan should allow consistent reads', async () => {
509507

510508
expect(documentClient.scan).toHaveBeenCalledWith({
511509
ConsistentRead: true,
512-
Limit: 50,
513510
TableName: tableName,
514511
});
515512
});

0 commit comments

Comments
 (0)