fix(seed): Replaced 'include' with 'match' and RegExp for the (#16700)
Closes #16698pull/16670/merge
parent
f3300546f6
commit
9f63625411
|
@ -714,7 +714,7 @@
|
|||
}
|
||||
},
|
||||
"tests": [
|
||||
"getUserInput => assert(getUserInput('index').replace(/ /g, '').includes('classMyComponentextendsReact.Component{'), 'message: There should be a React component called <code>MyComponent</code>.');",
|
||||
"getUserInput => assert(getUserInput('index').replace(/\\s/g, '').includes('classMyComponentextendsReact.Component{'), 'message: There should be a React component called <code>MyComponent</code>.');",
|
||||
"assert((function() { const mockedComponent = Enzyme.mount(React.createElement(MyComponent)); return mockedComponent.find('h1').text() === 'My First React Component!'; })(), 'message: <code>MyComponent</code> should contain an <code>h1</code> tag with text <code>My First React Component!</code> Case and punctuation matter.');",
|
||||
"assert(document.getElementById('challenge-node').childNodes.length === 1, 'message: <code>MyComponent</code> should render to the DOM.');"
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue