mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 01:40:46 +00:00
test-js: Use prettier and format all files
This commit is contained in:
parent
e532888242
commit
6d58c48c2f
Notes:
sideshowbarker
2024-07-19 05:04:03 +09:00
Author: https://github.com/mattco98
Commit: 6d58c48c2f
Pull-request: https://github.com/SerenityOS/serenity/pull/2689
Reviewed-by: https://github.com/linusg
248 changed files with 8291 additions and 7725 deletions
|
@ -1,32 +1,32 @@
|
|||
test("constructor properties", () => {
|
||||
expect(Boolean).toHaveLength(1);
|
||||
expect(Boolean.name).toBe("Boolean");
|
||||
expect(Boolean).toHaveLength(1);
|
||||
expect(Boolean.name).toBe("Boolean");
|
||||
});
|
||||
|
||||
test("typeof", () => {
|
||||
expect(typeof new Boolean()).toBe("object");
|
||||
expect(typeof Boolean()).toBe("boolean");
|
||||
expect(typeof Boolean(true)).toBe("boolean");
|
||||
})
|
||||
expect(typeof new Boolean()).toBe("object");
|
||||
expect(typeof Boolean()).toBe("boolean");
|
||||
expect(typeof Boolean(true)).toBe("boolean");
|
||||
});
|
||||
|
||||
test("basic functionality", () => {
|
||||
var foo = new Boolean(true);
|
||||
var bar = new Boolean(true);
|
||||
var foo = new Boolean(true);
|
||||
var bar = new Boolean(true);
|
||||
|
||||
expect(foo).not.toBe(bar);
|
||||
expect(foo.valueOf()).toBe(bar.valueOf());
|
||||
expect(foo).not.toBe(bar);
|
||||
expect(foo.valueOf()).toBe(bar.valueOf());
|
||||
|
||||
expect(Boolean()).toBeFalse();
|
||||
expect(Boolean(false)).toBeFalse();
|
||||
expect(Boolean(null)).toBeFalse();
|
||||
expect(Boolean(undefined)).toBeFalse();
|
||||
expect(Boolean(NaN)).toBeFalse();
|
||||
expect(Boolean("")).toBeFalse();
|
||||
expect(Boolean(0.0)).toBeFalse();
|
||||
expect(Boolean(-0.0)).toBeFalse();
|
||||
expect(Boolean(true)).toBeTrue();
|
||||
expect(Boolean("0")).toBeTrue();
|
||||
expect(Boolean({})).toBeTrue();
|
||||
expect(Boolean([])).toBeTrue();
|
||||
expect(Boolean(1)).toBeTrue();
|
||||
expect(Boolean()).toBeFalse();
|
||||
expect(Boolean(false)).toBeFalse();
|
||||
expect(Boolean(null)).toBeFalse();
|
||||
expect(Boolean(undefined)).toBeFalse();
|
||||
expect(Boolean(NaN)).toBeFalse();
|
||||
expect(Boolean("")).toBeFalse();
|
||||
expect(Boolean(0.0)).toBeFalse();
|
||||
expect(Boolean(-0.0)).toBeFalse();
|
||||
expect(Boolean(true)).toBeTrue();
|
||||
expect(Boolean("0")).toBeTrue();
|
||||
expect(Boolean({})).toBeTrue();
|
||||
expect(Boolean([])).toBeTrue();
|
||||
expect(Boolean(1)).toBeTrue();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue