fix(curriculum): update challenge tests to pass a valid solution (#44800)
* allow tests to pass when styles object's fontSize property is set to a string * Update curriculum/challenges/english/03-front-end-development-libraries/react/add-inline-styles-in-react.md Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> * Update curriculum/challenges/english/03-front-end-development-libraries/react/add-inline-styles-in-react.md Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
@ -33,7 +33,7 @@ assert(styles.color === 'purple');
|
||||
The `styles` variable should have a `fontSize` property set to a value of `40`.
|
||||
|
||||
```js
|
||||
assert(styles.fontSize === 40);
|
||||
assert(styles.fontSize == 40);
|
||||
```
|
||||
|
||||
The `styles` variable should have a `border` property set to a value of `2px solid purple`.
|
||||
@ -61,7 +61,7 @@ assert(
|
||||
const mockedComponent = Enzyme.shallow(React.createElement(Colorful));
|
||||
return (
|
||||
mockedComponent.props().style.color === 'purple' &&
|
||||
mockedComponent.props().style.fontSize === 40 &&
|
||||
mockedComponent.props().style.fontSize == 40 &&
|
||||
mockedComponent.props().style.border === '2px solid purple'
|
||||
);
|
||||
})()
|
||||
|
Reference in New Issue
Block a user