#732 Add line between columns (separate)

This commit is contained in:
Dolan Miu
2021-03-04 03:02:07 +00:00
parent 95556e57df
commit f3f65da207
9 changed files with 85 additions and 10 deletions

View File

@ -71,5 +71,60 @@ describe("MathSum", () => {
],
});
});
it("should add a hide when there is no subScript or superScript", () => {
const mathSum = new MathSum({
children: [new MathRun("1")],
});
const tree = new Formatter().format(mathSum);
expect(tree).to.deep.equal({
"m:nary": [
{
"m:naryPr": [
{
"m:chr": {
_attr: {
"m:val": "∑",
},
},
},
{
"m:limLoc": {
_attr: {
"m:val": "undOvr",
},
},
},
{
"m:supHide": {
_attr: {
"m:val": 1,
},
},
},
{
"m:subHide": {
_attr: {
"m:val": 1,
},
},
},
],
},
{
"m:e": [
{
"m:r": [
{
"m:t": ["1"],
},
],
},
],
},
],
});
});
});
});