mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibJS: Convert most builtin tests to new system
This commit is contained in:
parent
46581773c1
commit
3f97d75778
107 changed files with 2031 additions and 2243 deletions
13
Libraries/LibJS/Tests/builtins/NaN/NaN.js
Normal file
13
Libraries/LibJS/Tests/builtins/NaN/NaN.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
test("basic functionality", () => {
|
||||
const nan = undefined + 1;
|
||||
|
||||
expect(nan + "").toBe("NaN");
|
||||
expect(NaN + "").toBe("NaN");
|
||||
expect(nan !== nan).toBeTrue();
|
||||
expect(NaN !== NaN).toBeTrue();
|
||||
expect(nan).toBeNaN();
|
||||
expect(NaN).toBeNaN();
|
||||
expect(0).not.toBeNaN();
|
||||
expect(!!nan).toBeFalse();
|
||||
expect(!!NaN).toBeFalse();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue