fix(curriculum): Remove unnecessary assert message argument from English Front End Libraries challenges - 02 (#36409)
* fix: removed assert msg argument * fix: removed more assert msg args * fix: removed more assert msg args
This commit is contained in:
committed by
Parth Parth
parent
d0d8282f86
commit
f2df76c099
@@ -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'; })());
|
||||
- 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'; })());
|
||||
- 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'); })());
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user