From 3cb39c5ea42d15f9f38636793f5a7ed30f1e984e Mon Sep 17 00:00:00 2001 From: dreamwasp <cass.spain@skillsoft.com> Date: Mon, 7 Oct 2024 10:16:47 -0400 Subject: [PATCH] rm unintended changes --- .../src/Markdown/__tests__/Markdown.test.tsx | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx b/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx index e110b2aa6f..aefc4b3018 100644 --- a/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx +++ b/packages/gamut/src/Markdown/__tests__/Markdown.test.tsx @@ -42,14 +42,6 @@ const checkboxMarkdown = ` - [ ] third checkbox `; -const table = ` -| Tables | Are | Cool | -|----------|:-------------:|------:| -| col 1 is | left-aligned | $1600 | -| col 2 is | centered | $12 | -| col 3 is | right-aligned | $1 | -`; - const renderView = setupRtl(Markdown); describe('<Markdown />', () => { @@ -68,6 +60,13 @@ describe('<Markdown />', () => { }); it('Renders custom tables in markdown', () => { + const table = ` +| Tables | Are | Cool | +|----------|:-------------:|------:| +| col 1 is | left-aligned | $1600 | +| col 2 is | centered | $12 | +| col 3 is | right-aligned | $1 | + `; renderView({ text: table }); expect(document.querySelectorAll('div.tableWrapper table').length).toEqual( 1 @@ -75,6 +74,13 @@ describe('<Markdown />', () => { }); it('Skips rendering custom tables in markdown when skipProcessing.table is true', () => { + const table = ` +| Tables | Are | Cool | +|----------|:-------------:|------:| +| col 1 is | left-aligned | $1600 | +| col 2 is | centered | $12 | +| col 3 is | right-aligned | $1 | + `; renderView({ skipDefaultOverrides: { table: true }, text: table,