adapt test

Closes: #25256
Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com>
This commit is contained in:
Jente Sondervorst
2024-06-17 22:45:18 +02:00
parent 82434ee7b5
commit 427ae45472
@@ -341,12 +341,12 @@ describe('readLdapConfig', () => {
);
expect(() => {
(actual[0].users[0].set as any).y = 2;
(actual[0].groups[0].set as any).y = 2;
}).toThrowErrorMatchingInlineSnapshot(
`"Cannot add property y, object is not extensible"`,
);
expect(() => {
(actual[0].users[0].set as any).x.b = 2;
(actual[0].groups[0].set as any).x.b = 2;
}).toThrowErrorMatchingInlineSnapshot(
`"Cannot add property b, object is not extensible"`,
);