From 4708181628a107e2e8826de9e6213308d64a78c7 Mon Sep 17 00:00:00 2001 From: CSantosM <4a.santos@gmail.com> Date: Tue, 17 Feb 2026 11:08:30 +0100 Subject: [PATCH] backend: update expectObjectFields to use expect.arrayContaining for better key validation --- meet-ce/backend/tests/helpers/assertion-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meet-ce/backend/tests/helpers/assertion-helpers.ts b/meet-ce/backend/tests/helpers/assertion-helpers.ts index 57c8f9a0..80b37c2b 100644 --- a/meet-ce/backend/tests/helpers/assertion-helpers.ts +++ b/meet-ce/backend/tests/helpers/assertion-helpers.ts @@ -248,7 +248,7 @@ export const expectValidRecordingWithFields = (rec: MeetRecordingInfo, fields: s }; const expectObjectFields = (obj: unknown, present: string[] = [], absent: string[] = []) => { - expect(Object.keys(obj as any)).toEqual(present); + expect(Object.keys(obj as any)).toEqual(expect.arrayContaining(present)); present.forEach((key) => { expect(obj).toHaveProperty(key); expect((obj as any)[key]).not.toBeUndefined();