(expr: any, settings: any = new Settings())
| 9 | const parseTree: any = parseTreeOrig; |
| 10 | |
| 11 | const getMathML = function(expr: any, settings: any = new Settings()) { |
| 12 | let startStyle = Style.TEXT; |
| 13 | if (settings.displayMode) { |
| 14 | startStyle = Style.DISPLAY; |
| 15 | } |
| 16 | |
| 17 | // Setup the default options |
| 18 | const options = new Options({ |
| 19 | style: startStyle, |
| 20 | maxSize: Infinity, |
| 21 | minRuleThickness: 0, |
| 22 | }); |
| 23 | |
| 24 | const built = buildMathML(parseTree(expr, settings), expr, options, |
| 25 | settings.displayMode); |
| 26 | |
| 27 | // Strip off the surrounding <span> |
| 28 | return built.children[0].toMarkup(); |
| 29 | }; |
| 30 | |
| 31 | describe("A MathML builder", function() { |
| 32 | it('should generate the right types of nodes', () => { |
no test coverage detected
searching dependent graphs…