From 38fad7a173f7c5c21c66724b9ae594ac350fc3ac Mon Sep 17 00:00:00 2001 From: Alexandre Nunes Date: Sat, 3 Oct 2020 10:37:45 -0300 Subject: [PATCH] refactor: move mfrac test cases inside its describer --- __test__/index.test.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/__test__/index.test.ts b/__test__/index.test.ts index 56f7b44..39ad342 100755 --- a/__test__/index.test.ts +++ b/__test__/index.test.ts @@ -302,24 +302,24 @@ describe('#convert', () => { expect(result).toMatch('\\frac{x}{3}'); }); }); - }); - describe('containing multiple char contents', () => { - it('convert mfrac wrap inside \\frac command', () => { - const mathml = mathmlStrings.mfracWithMrow; + describe('containing multiple char contents', () => { + it('convert mfrac wrap inside \\frac command', () => { + 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', () => { - it('convert mfrac joining its two char contents with //', () => { - const mathml = mathmlStrings.shortMFrac; + describe('containing two contents with bevelled attribute marked as true', () => { + it('convert mfrac joining its two char contents with //', () => { + const mathml = mathmlStrings.shortMFrac; - const result = MathMLToLaTeX.convert(mathml); - expect(result).toMatch('1/\\left(x^{3} + 3\\right)'); + const result = MathMLToLaTeX.convert(mathml); + expect(result).toMatch('1/\\left(x^{3} + 3\\right)'); + }); }); });