Migrate remaining legacy operator workflows
This commit is contained in:
@@ -52,6 +52,12 @@ test("KRX and NXT database identities normalize without inferring market from a
|
||||
Market: "Krx", ThemeCode: "00000001", ThemeTitle: "AI 반도체", Session: "NotApplicable",
|
||||
previewItemCount: 17
|
||||
}), krxTheme);
|
||||
assert.equal(workflow.normalizeTheme({
|
||||
market: "krx", themeCode: "123", title: "Legacy"
|
||||
}).themeCode, "123");
|
||||
assert.equal(workflow.normalizeTheme({
|
||||
market: "krx", themeCode: "0123", title: "Legacy"
|
||||
}).themeCode, "0123");
|
||||
assert.deepEqual(workflow.normalizeTheme({
|
||||
market: "NXT", themeCode: "00000002", title: "로봇", session: "PreMarket", items: new Array(121)
|
||||
}), nxtPreTheme);
|
||||
@@ -71,7 +77,7 @@ test("typed theme validation reports clear market, code, session and preview fai
|
||||
market: "other", themeCode: "00000001", title: "AI"
|
||||
}, "INPUT_ORDER").reason, "invalid-theme-market");
|
||||
assert.equal(workflow.getCompatibility("five-row-current", {
|
||||
market: "krx", themeCode: "1", title: "AI"
|
||||
market: "krx", themeCode: "12", title: "AI"
|
||||
}, "INPUT_ORDER").reason, "invalid-theme-code");
|
||||
assert.equal(workflow.getCompatibility("five-row-current", {
|
||||
market: "krx", themeCode: " 00000001 ", title: "AI"
|
||||
|
||||
Reference in New Issue
Block a user