refactor: Use toStrictEqual instead of toEqual for tests

This commit is contained in:
Faruk AYDIN
2024-10-25 12:33:39 +02:00
parent 7a437660d1
commit 2e5b44c424
82 changed files with 116 additions and 112 deletions

View File

@@ -23,7 +23,7 @@ describe('executionSerializer', () => {
updatedAt: execution.updatedAt.getTime(),
};
expect(executionSerializer(execution)).toEqual(expectedPayload);
expect(executionSerializer(execution)).toStrictEqual(expectedPayload);
});
it('should return the execution data with status', async () => {
@@ -37,7 +37,7 @@ describe('executionSerializer', () => {
status: 'success',
};
expect(executionSerializer(execution)).toEqual(expectedPayload);
expect(executionSerializer(execution)).toStrictEqual(expectedPayload);
});
it('should return the execution data with the flow', async () => {