summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js')
-rw-r--r--Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js b/Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
index 46c1b6d8cd..490787f6f5 100644
--- a/Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
+++ b/Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
@@ -3,6 +3,7 @@ test("basic functionality", () => {
for (var i = 0; i < 100; ++i) {
var now = Date.now();
expect(now).not.toBeNaN();
+ expect(Math.floor(now)).toBe(now);
expect(now).toBeGreaterThan(1580000000000);
expect(now).toBeGreaterThanOrEqual(last);
last = now;