fix(challenge-md): Fix quotes that failed in the transform
This commit is contained in:
committed by
mrugesh mohapatra
parent
392b28fa55
commit
a859035023
@@ -28,11 +28,11 @@ Note that you can optionally set the font size to be a number, omitting the unit
|
||||
```yml
|
||||
tests:
|
||||
- text: The component should render a <code>div</code> element.
|
||||
testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(Colorful)); return mockedComponent.children().type() === ''div''; })(), ''The component should render a <code>div</code> element.'');'
|
||||
testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(Colorful)); return mockedComponent.children().type() === "div"; })(), "The component should render a <code>div</code> element.");'
|
||||
- text: The <code>div</code> element should have a color of <code>red</code>.
|
||||
testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(Colorful)); return mockedComponent.children().props().style.color === ''red''; })(), ''The <code>div</code> element should have a color of <code>red</code>.'');'
|
||||
testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(Colorful)); return mockedComponent.children().props().style.color === "red"; })(), "The <code>div</code> element should have a color of <code>red</code>.");'
|
||||
- text: The <code>div</code> element should have a font size of <code>72px</code>.
|
||||
testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(Colorful)); return (mockedComponent.children().props().style.fontSize === 72 || mockedComponent.children().props().style.fontSize === ''72'' || mockedComponent.children().props().style.fontSize === ''72px''); })(), ''The <code>div</code> element should have a font size of <code>72px</code>.'');'
|
||||
testString: 'assert((function() { const mockedComponent = Enzyme.mount(React.createElement(Colorful)); return (mockedComponent.children().props().style.fontSize === 72 || mockedComponent.children().props().style.fontSize === "72" || mockedComponent.children().props().style.fontSize === "72px"); })(), "The <code>div</code> element should have a font size of <code>72px</code>.");'
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user