Skip to content

Commit

Permalink
add scan test case without args
Browse files Browse the repository at this point in the history
  • Loading branch information
jkdowdle committed Dec 12, 2023
1 parent 637dc9d commit aae5527
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dynamo-table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ describe('DynamoTable', () => {

expect(filteredSet.items).toHaveLength(1);
expect(filteredSet.nextPageToken).toBeDefined();

const fullSet = await userTable.scan();

expect(fullSet.items).toHaveLength(1);
expect(fullSet.nextPageToken).not.toBeDefined();
});

it('can scan the table with a filter', async () => {
Expand Down

0 comments on commit aae5527

Please sign in to comment.