1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: replace ava by tape
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2022-09-20
--- a/test.js
+++ b/test.js
@@ -1,4 +1,4 @@
-import test from 'ava';
+import test from 'tape';
import parseMilliseconds from './index.js';
const toBigInt = milliseconds => {
@@ -177,6 +177,7 @@
microseconds: 0,
nanoseconds: 0,
});
+ t.end();
});
test('handle negative millisecond values', t => {
@@ -212,6 +213,7 @@
t.is(negative[unit], -positive[unit]);
}
}
+ t.end();
});
test('errors', t => {
@@ -226,4 +228,5 @@
t.throws(() => {
parseMilliseconds(Number.POSITIVE_INFINITY);
});
+ t.end();
});
|