refactor(pure): share MS_PER_DAY with tests and document pruneHistory

This commit is contained in:
dev
2026-06-01 15:48:52 -05:00
parent ca753bf196
commit a2e23341ac
2 changed files with 11 additions and 3 deletions
+2 -2
View File
@@ -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', () => {