@davoodmehraban89 / VELYQOR / commits / 157a990
Fork 0

Intelligence, Advanced Charting & Trading Platform

test: use tolerance for spike boundary percentage

davoodmehraban89 committed Oct 5, 2026 at 17:02 UTC 157a99070cf90570e12d0c0eb2b1fa5246d67346
1 file changed +1 -1
packages/market-domain/test/spike-detection.test.mjs
+1 -1
@@ -26,7 +26,7 @@ test('does not flag a move at the configured boundary', () => {
26 });
27
28 assert.equal(result.state, 'GOOD');
29 - assert.equal(result.movePct, 5);
29 + assert.ok(Math.abs(result.movePct - 5) < 1e-9);
30 });
31
32 test('staleness remains the dominant state when a stale observation also spikes', () => {