mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:12:08 +00:00
test-js: Use prettier and format all files
This commit is contained in:
parent
e532888242
commit
6d58c48c2f
248 changed files with 8291 additions and 7725 deletions
|
@ -1,18 +1,18 @@
|
|||
test("basic functionality", () => {
|
||||
expect(Error).toHaveLength(1);
|
||||
expect(Error.name).toBe("Error");
|
||||
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");
|
||||
});
|
||||
[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");
|
||||
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");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue