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 36 37 38 39 40 41 42 43
|
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 prettyMilliseconds from './index.js';
const toBigInt = milliseconds => {
@@ -30,6 +30,7 @@
t.is(format(bigint, options), expected, `BigInt(${bigint}n)`);
}
}
+ t.end();
});
}
@@ -255,6 +256,7 @@
t.throws(() => {
prettyMilliseconds(Number.POSITIVE_INFINITY);
});
+ t.end();
});
runTests({
@@ -469,6 +471,7 @@
prettyMilliseconds(duration, {colonNotation: true}),
'492518667085565947437061434881381799446768678152999990681965689871663728164461750029012489404840762113809476584970910860915948840793052555530048073160376758865890165963154197469165726275039257381029776735493517650149543114803350542920023450224995474725473496449711570325310074468272054469179189112833218790:18:04:03:02',
);
+ t.end();
});
test('pure', t => {
@@ -480,4 +483,5 @@
runTest({colonNotation: true});
runTest({compact: true});
+ t.end();
});
|