[WC-3504][WC-3264] update dependencies and add subscript and superscript - #2406
[WC-3504][WC-3264] update dependencies and add subscript and superscript#2406gjulivan wants to merge 1 commit into
Conversation
AI Code Review
What was reviewed
Skipped (out of scope): Findings🔶 Medium — No tests for the new subscript/superscript functionalityFile: it("renders subscript syntax", () => {
defaultProps.stringAttribute = new EditableValueBuilder<string>()
.withValue("H~2~O")
.build();
const { container } = render(<Markdown {...defaultProps} />);
expect(container.querySelector("sub")).toBeInTheDocument();
expect(container.querySelector("sub")?.textContent).toBe("2");
});
it("renders superscript syntax", () => {
defaultProps.stringAttribute = new EditableValueBuilder<string>()
.withValue("x^2^")
.build();
const { container } = render(<Markdown {...defaultProps} />);
expect(container.querySelector("sup")).toBeInTheDocument();
expect(container.querySelector("sup")?.textContent).toBe("2");
});Also run
|
Pull request type
Description