Skip to content

Commit bbe1439

Browse files
fix(markdown-utility): update tests
1 parent 1b84ee6 commit bbe1439

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utilities/src/utilities/markdownToHtml/__tests__/markdownToHtml.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ describe('Markdown converter utility', () => {
1414
});
1515

1616
it('return the converted string with italic', () => {
17-
const output = markdownToHtml(str, { italic: true });
17+
const output = markdownToHtml(str, { bold: false });
1818
const expected = `This is <em class="${prefix}--type-light">italic</em> and **bold**.`;
1919
expect(output).toBe(expected);
2020
});
2121

2222
it('return the converted string with bold', () => {
23-
const output = markdownToHtml(str, { bold: true });
23+
const output = markdownToHtml(str, { italic: false });
2424
const expected = `This is _italic_ and <strong class="${prefix}--type-semibold">bold</strong>.`;
2525
expect(output).toBe(expected);
2626
});

0 commit comments

Comments
 (0)