Intelligence, Advanced Charting & Trading Platform
test(alert): specify verified quote unit for gate/engine identity check
davoodmehraban89 committed
Oct 21, 2026 at 08:56 UTC
9d67231732dd10c171924b2a2b9ec49831339bc1
1 file changed
+1
-1
packages/market-domain/test/informational-alert-engine.test.mjs
+1
-1
@@ -1,7 +1,7 @@
1
import test from 'node:test';import assert from 'node:assert/strict';
2
import {initialAlertState,stepAlert,markNotified,closeAlert} from '../src/informational-alert-engine.mjs';
3
const at=i=>new Date(Date.parse('2026-10-20T12:00:00Z')+i*60000).toISOString();
4
-const q=(i,p,extras={})=>({timestamp:at(i),price:p,provider:'S1',symbol:'USD_IRT_FREE',side:'SELL',...extras});
4
+const q=(i,p,extras={})=>({timestamp:at(i),price:p,provider:'S1',symbol:'USD_IRT_FREE',side:'SELL',unit:'IRT_PER_USD',...extras});
5
const g=x=>({status:'GOOD',alertsSuspended:false,accepted:x});
6
const leg=(type,extras={})=>({type,side:'SELL',threshold:100,position:'LONG',entry:100,...extras});
7
const rule=(id,legs,extra={})=>({id,legs,...extra});