Intelligence, Advanced Charting & Trading Platform
test(ui): normalize Windows line endings for embedded chart parity
davoodmehraban89 committed
Oct 11, 2026 at 23:55 UTC
061899b5ee97c7dd9fd7301c32c218166230c545
1 file changed
+1
-1
deploy/chartnova/history-ui-sync.test.mjs
+1
-1
@@ -2,7 +2,7 @@ import test from "node:test";
2
import assert from "node:assert/strict";
3
import fs from "node:fs";
4
const worker=fs.readFileSync(new URL("./worker.mjs",import.meta.url),"utf8");
5
-const ui=fs.readFileSync(new URL("./history-ui.js",import.meta.url),"utf8").trimEnd();
5
+const ui=fs.readFileSync(new URL("./history-ui.js",import.meta.url),"utf8").replace(/\r\n/g,"\n").trimEnd();
6
test("historical chart implementation and embedded Worker UI remain in sync",()=>{
7
const at=worker.lastIndexOf("return new Response(")+"return new Response(".length;
8
assert(at>=20);