refactor: move mfrac test cases inside its describer

This commit is contained in:
Alexandre Nunes 2020-10-03 10:37:45 -03:00
parent 8a1de24a1c
commit 38fad7a173
1 changed files with 12 additions and 12 deletions

View File

@ -302,24 +302,24 @@ describe('#convert', () => {
expect(result).toMatch('\\frac{x}{3}'); expect(result).toMatch('\\frac{x}{3}');
}); });
}); });
});
describe('containing multiple char contents', () => { describe('containing multiple char contents', () => {
it('convert mfrac wrap inside \\frac command', () => { it('convert mfrac wrap inside \\frac command', () => {
const mathml = mathmlStrings.mfracWithMrow; const mathml = mathmlStrings.mfracWithMrow;
const result = MathMLToLaTeX.convert(mathml); const result = MathMLToLaTeX.convert(mathml);
expect(result).toMatch('\\frac{a + 2}{b - 3}'); expect(result).toMatch('\\frac{a + 2}{b - 3}');
});
}); });
});
describe('containing two contents with bevelled attribute marked as true', () => { describe('containing two contents with bevelled attribute marked as true', () => {
it('convert mfrac joining its two char contents with //', () => { it('convert mfrac joining its two char contents with //', () => {
const mathml = mathmlStrings.shortMFrac; const mathml = mathmlStrings.shortMFrac;
const result = MathMLToLaTeX.convert(mathml); const result = MathMLToLaTeX.convert(mathml);
expect(result).toMatch('1/\\left(x^{3} + 3\\right)'); expect(result).toMatch('1/\\left(x^{3} + 3\\right)');
});
}); });
}); });