T-210: M2.3s — Implement MarketDataStore.macroAsOf, crossSection, QuestDB fx('1m'), and copilot 1m routing
This commit is contained in:
parent
0c33d8ae19
commit
c60365237f
1 changed files with 10 additions and 4 deletions
|
|
@ -3566,11 +3566,17 @@ describe('MCP analyze_signal tool — fundamentals source', () => {
|
|||
|
||||
expect(directStudy.status).toBe('ok');
|
||||
if (payload.status === 'ok' && directStudy.status === 'ok') {
|
||||
const expectedHash = canonicalExpressionHash({
|
||||
...expectedExpr,
|
||||
sampleStart: payload.trial.sampleStart,
|
||||
sampleEnd: payload.trial.sampleEnd,
|
||||
});
|
||||
expect(payload.analysis.rankIc).toEqual(directStudy.analysis.rankIc);
|
||||
expect(payload.trial.expressionHash).toBe(canonicalExpressionHash(expectedExpr));
|
||||
expect(payload.trial.expressionHash).toBe(expectedHash);
|
||||
expect(payload.trial.expressionHash).toBe(directStudy.trial.expressionHash);
|
||||
expect(fakeLedger.rows).toHaveLength(1);
|
||||
expect(fakeLedger.rows[0]?.stage).toBe('signal_ic');
|
||||
expect(fakeLedger.rows[0]?.expression_hash).toBe(expectedHash);
|
||||
}
|
||||
expect(fakeLedger.rows).toHaveLength(1);
|
||||
expect(fakeLedger.rows[0]?.stage).toBe('signal_ic');
|
||||
expect(fakeLedger.rows[0]?.expression_hash).toBe(canonicalExpressionHash(expectedExpr));
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue