Skip to content

Commit c6eeb01

Browse files
committed
test: compare the whole object result
1 parent bf7e01f commit c6eeb01

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

__tests__/unit/app.eventFlow.test.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,10 @@ describe('handlePostConditionEntity', () => {
186186
const result = await handlePostConditionEntity(conditionCreditor as unknown as EntityCondition);
187187

188188
// Assert
189-
expect(databaseManager.saveCondition).toHaveBeenCalledWith(
190-
expect.objectContaining({
191-
...conditionCreditor,
192-
creDtTm: nowDateTime,
193-
}),
194-
);
189+
expect(databaseManager.saveCondition).toHaveBeenCalledWith({
190+
...conditionCreditor,
191+
creDtTm: nowDateTime,
192+
});
195193

196194
expect(databaseManager.saveGovernedAsCreditorByEdge).toHaveBeenCalledWith('cond123', 'account456', conditionCreditor);
197195
expect(result).toEqual({

0 commit comments

Comments
 (0)