From af6fa80d2075df9315be599a6d2a45a750ddb643 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 29 Aug 2024 08:39:16 +0000 Subject: [PATCH] test(reset-connection): cover formattedData with DB changes --- .../controllers/api/v1/connections/reset-connection.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js b/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js index e2d5ecb2..ba4caaf9 100644 --- a/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js +++ b/packages/backend/src/controllers/api/v1/connections/reset-connection.test.js @@ -53,7 +53,10 @@ describe('POST /api/v1/connections/:connectionId/reset', () => { }, }); - expect(response.body).toMatchObject(expectedPayload); + expect(response.body).toStrictEqual(expectedPayload); + expect(refetchedCurrentUserConnection.formattedData).toStrictEqual( + expectedPayload.data.formattedData + ); }); it('should return not found response for another user', async () => {