refactor(syntax-highlighting): use component wrapping for syntax highlighting activation (#9784)

This commit is contained in:
Vladimír Gorej
2024-04-06 00:16:00 +02:00
committed by GitHub
parent 7260005bd8
commit ac0d2a3cc8
15 changed files with 143 additions and 112 deletions

View File

@@ -33,7 +33,7 @@ describe("<HighlightCode />", () => {
it("should render values in a preformatted element", () => {
const value = "test text"
const props = { value, getConfigs: fakeGetConfigs, getComponent: fakeGetComponent }
const props = { children: value , getConfigs: fakeGetConfigs, getComponent: fakeGetComponent }
const wrapper = mount(<HighlightCode {...props} />)
const preTag = wrapper.find("pre")