test(reset-connection): cover formattedData with DB changes

This commit is contained in:
Ali BARIN
2024-08-29 08:39:16 +00:00
parent e7474dcb9e
commit af6fa80d20

View File

@@ -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 () => {