mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
10 lines
253 B
JavaScript
10 lines
253 B
JavaScript
QUnit.test('Date.now', assert => {
|
|
const { now } = Date;
|
|
assert.isFunction(now);
|
|
assert.arity(now, 0);
|
|
assert.name(now, 'now');
|
|
assert.looksNative(now);
|
|
assert.nonEnumerable(Date, 'now');
|
|
assert.same(typeof now(), 'number', 'typeof');
|
|
});
|