Intelligence, Advanced Charting & Trading Platform
test: correct UTC timezone mismatch fixture
davoodmehraban89 committed
Oct 11, 2026 at 23:51 UTC
80bd4586ec756ec9a93ce199437ca71d538526cd
1 file changed
+1
-1
packages/market-domain/test/licensed-ohlc-history.test.mjs
+1
-1
@@ -44,7 +44,7 @@ test("cannot relabel daily reference observation as a traded candle",()=>{
44
});
45
test("OHLC ordering, time zone, future intervals and naive times are rejected",()=>{
46
assert.throws(()=>run([sample("2025-10-13",{low:"1260000"})]),/OHLC ordering/);
47
- assert.throws(()=>run([sample("2025-10-13",{openTime:"2025-10-13T00:00:00Z"})]),/Timezone\/session mismatch/);
47
+ assert.throws(()=>run([sample("2025-10-13",{openTime:"2025-10-12T19:00:00Z"})]),/Timezone\/session mismatch/);
48
assert.throws(()=>run([sample("2025-10-13",{openTime:"2025-10-13T00:00:00"})]),/timezone offset/);
49
assert.throws(()=>run([sample("2025-10-13",{closeTime:"2027-10-13T23:00:00+03:30"})]),/future bar/);
50
});