mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
1857 changed files with 266 additions and 274 deletions
10
Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
Normal file
10
Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
test("basic functionality", () => {
|
||||
var last = 0;
|
||||
for (var i = 0; i < 100; ++i) {
|
||||
var now = Date.now();
|
||||
expect(now).not.toBeNaN();
|
||||
expect(now).toBeGreaterThan(1580000000000);
|
||||
expect(now).toBeGreaterThanOrEqual(last);
|
||||
last = now;
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue