Fix notepad cursor and calculator linked formulas
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
This commit is contained in:
parent
992665f4ea
commit
49ba0c4cb2
10 changed files with 223 additions and 45 deletions
|
|
@ -107,14 +107,15 @@ test("text exchange imports table TSV and calculator hierarchy", () => {
|
|||
const calculator = normalizeCalculatorData({
|
||||
scrollResults: true,
|
||||
entries: [
|
||||
{ id: "a", label: "Ore", value: 100 },
|
||||
{ id: "b", parentId: "a", label: "Shard", value: 500 }
|
||||
{ id: "a", label: "Ore", value: 100, formula: "100" },
|
||||
{ id: "b", parentId: "a", label: "Shard", value: 500, formula: "base*5" }
|
||||
]
|
||||
});
|
||||
const calculatorImport = importModuleText("calculator", exportModuleText("calculator", calculator), context);
|
||||
assert.equal(calculatorImport.ok, true);
|
||||
assert.equal(calculatorImport.data.scrollResults, true);
|
||||
assert.equal(calculatorImport.data.entries[1].parentId, calculatorImport.data.entries[0].id);
|
||||
assert.equal(calculatorImport.data.entries[1].formula, "base*5");
|
||||
});
|
||||
|
||||
test("text exchange round trips combos, tasks, equipment, images and timers", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue