blob: 490787f6f5c1acba524dc4f8b7b8c7f29c5d3eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
test("basic functionality", () => {
var last = 0;
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;
}
});
|