From 68611e10ac01741bf0cf54a7671ced46340708c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Rame=CC=81?= Date: Tue, 20 Feb 2024 12:21:13 +0100 Subject: [PATCH] fix: missing modification in a array diff test --- src/utils/comparaison.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/comparaison.spec.ts b/src/utils/comparaison.spec.ts index fde7446..4ccc510 100644 --- a/src/utils/comparaison.spec.ts +++ b/src/utils/comparaison.spec.ts @@ -78,7 +78,9 @@ describe('getListDiff()', () => { type: 'list', }); - const diffResult = getListDiff(before, after); + const diffResult = getListDiff(before, after, { + referenceProperty: 'id', + }); // Our own wrapper around the library function should fix those expect(diffResult).toStrictEqual({