From d7ee61f6c3fdc5a4190cc1dd04f363b04255debc Mon Sep 17 00:00:00 2001 From: Olli Warro Date: Wed, 10 Apr 2024 11:52:13 +0300 Subject: [PATCH] update tests --- .../updateItemQueryBuilder.integration.test.ts.snap | 13 ------------- .../updateItemQueryBuilder.integration.test.ts | 7 ------- 2 files changed, 20 deletions(-) diff --git a/src/queryBuilders/__snapshots__/updateItemQueryBuilder.integration.test.ts.snap b/src/queryBuilders/__snapshots__/updateItemQueryBuilder.integration.test.ts.snap index 845a6b3..66ce9d1 100644 --- a/src/queryBuilders/__snapshots__/updateItemQueryBuilder.integration.test.ts.snap +++ b/src/queryBuilders/__snapshots__/updateItemQueryBuilder.integration.test.ts.snap @@ -48,19 +48,6 @@ exports[`UpdateItemQueryBuilder > handles update item query with SET statements } `; -exports[`UpdateItemQueryBuilder > handles update item query with condition expressions 2`] = ` -{ - "dataTimestamp": 2, - "someSet": Set { - "1", - "2", - "3", - }, - "somethingElse": 0, - "userId": "1", -} -`; - exports[`UpdateItemQueryBuilder > handles update item query with multiple different operations 1`] = ` { "dataTimestamp": 2, diff --git a/src/queryBuilders/updateItemQueryBuilder.integration.test.ts b/src/queryBuilders/updateItemQueryBuilder.integration.test.ts index 5c29a2f..8393b15 100644 --- a/src/queryBuilders/updateItemQueryBuilder.integration.test.ts +++ b/src/queryBuilders/updateItemQueryBuilder.integration.test.ts @@ -178,12 +178,5 @@ describe("UpdateItemQueryBuilder", () => { ).rejects.toMatchInlineSnapshot( `[ConditionalCheckFailedException: The conditional request failed]` ); - - const foundItem = await tsynamoClient - .getItem("myTable") - .keys({ userId: "1", dataTimestamp: 2 }) - .execute(); - - expect(foundItem).toMatchSnapshot(); }); });