1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

Libraries: Move to Userland/Libraries/

This commit is contained in:
Andreas Kling 2021-01-12 12:17:30 +01:00
parent dc28c07fa5
commit 13d7c09125
1857 changed files with 266 additions and 274 deletions

View file

@ -1,33 +0,0 @@
test("length is 1", () => {
expect(Reflect.isExtensible).toHaveLength(1);
});
describe("errors", () => {
test("target must be an object", () => {
[null, undefined, "foo", 123, NaN, Infinity].forEach(value => {
expect(() => {
Reflect.isExtensible(value);
}).toThrowWithMessage(
TypeError,
"First argument of Reflect.isExtensible() must be an object"
);
});
});
});
describe("normal behavior", () => {
test("regular object is extensible", () => {
expect(Reflect.isExtensible({})).toBeTrue();
});
test("global object is extensible", () => {
expect(Reflect.isExtensible(globalThis)).toBeTrue();
});
test("regular object is not extensible after preventExtensions()", () => {
var o = {};
expect(Reflect.isExtensible(o)).toBeTrue();
Reflect.preventExtensions(o);
expect(Reflect.isExtensible(o)).toBeFalse();
});
});