Skip to content

Commit

Permalink
Remove unnecessary destructure properties
Browse files Browse the repository at this point in the history
  • Loading branch information
benrj committed Oct 20, 2021
1 parent 9ac66f8 commit c20ecd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/delete.locking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test('should require version number to remove item from the table', async () =>
});

test('should error when version number is missing when removing item from the table', async () => {
const { tableName, dao } = context;
const { dao } = context;

const key = { id: uuid() };
const updateData = { test: uuid(), newField: uuid() };
Expand All @@ -54,7 +54,7 @@ test('should error when version number is missing when removing item from the ta
});

test('should error when version number is old when removing item from the table', async () => {
const { tableName, dao } = context;
const { dao } = context;

const key = { id: uuid() };
const updateData = { test: uuid(), newField: uuid() };
Expand All @@ -71,7 +71,7 @@ test('should error when version number is old when removing item from the table'
});

test('should not require version number to remove item from the table when ignore flag is set', async () => {
const { tableName, dao } = context;
const { dao } = context;

const key = { id: uuid() };
const updateData = { test: uuid(), newField: uuid() };
Expand Down
2 changes: 1 addition & 1 deletion test/update.locking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ test('should increment the version number by 1 on subsequent updates', async ()
});

test('should error if update does not supply the correct version number', async () => {
const { tableName, dao } = context;
const { dao } = context;
const updateData = { test: uuid(), newField: uuid() };
// sets the initial version to 1
await dao.update(key, updateData);
Expand Down

0 comments on commit c20ecd9

Please sign in to comment.