summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/builtins/Date/Date.now.js
blob: 46c1b6d8cd1e3ed337f8b2f1a867cf1bdf3e1845 (plain)
1
2
3
4
5
6
7
8
9
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;
    }
});