adapt test
Closes: #25256 Signed-off-by: Jente Sondervorst <jentesondervorst@gmail.com>
This commit is contained in:
@@ -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"`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user