auth-api/tests/node_modules/tape/example/timing.js
2021-06-23 22:30:45 +02:00

15 lines
251 B
JavaScript

'use strict';
var test = require('../');
test('timing test', function (t) {
t.plan(2);
t.equal(typeof Date.now, 'function');
var start = Date.now();
setTimeout(function () {
t.ok(Date.now() - start > 100);
}, 100);
});