Skip to content

Commit

Permalink
Test for Issue joshbtn#83
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaramie committed Jan 1, 2022
1 parent 5ff3e59 commit 48608a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ExcelFormulaUtilities.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("ExcelFormulaUtilities", () => {
describe("#arrayliterals", () => {
it("Test parsing a formula that contains array literals. From Issue #83", () => {
let inputFormula='=SORT($B$3:$F$20,{2,1},{-1,1})';
let expected = '={&nbsp;A1:C2,<br /><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span>B2:C3}';
let expected = '=<span class="function">SORT</span><span class="function_start">(</span><br /><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span>$B$3:$F$20,<br />{&nbsp;2,<br /><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span>1},<br />{-&nbsp;1,<br /><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="tabbed">&nbsp;&nbsp;&nbsp;&nbsp;</span>1}<br /><span class="function_stop">)</span>';
let actual = formula.formatFormulaHTML(inputFormula);
assert.equal(actual, expected);
})
Expand Down

0 comments on commit 48608a8

Please sign in to comment.