refactor(pure): share MS_PER_DAY with tests and document pruneHistory
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { parseTarget, computeEstimate, pruneHistory } from '../src/pure.js';
|
||||
import { parseTarget, computeEstimate, pruneHistory, MS_PER_DAY } from '../src/pure.js';
|
||||
|
||||
const DAY = 86_400_000;
|
||||
const DAY = MS_PER_DAY;
|
||||
const NOW = 1_700_000_000_000; // fixed reference
|
||||
|
||||
test('parseTarget: integer numbers', () => {
|
||||
|
||||
Reference in New Issue
Block a user