Libraries: Move to Userland/Libraries/

This commit is contained in:
Andreas Kling 2021-01-12 12:17:30 +01:00
commit 13d7c09125
Notes: sideshowbarker 2024-07-18 23:53:55 +09:00
1857 changed files with 266 additions and 274 deletions

View file

@ -1,18 +0,0 @@
test("basic functionality", () => {
expect(Error).toHaveLength(1);
expect(Error.name).toBe("Error");
});
test("name", () => {
[Error(), Error(undefined), Error("test"), Error(42), Error(null)].forEach(error => {
expect(error.name).toBe("Error");
});
});
test("message", () => {
expect(Error().message).toBe("");
expect(Error(undefined).message).toBe("");
expect(Error("test").message).toBe("test");
expect(Error(42).message).toBe("42");
expect(Error(null).message).toBe("null");
});