Merge pull request #13113 from Greenheart/fix/array-slice-cleaner-assertion
fix(challenge): Cleaner assertion for "Copy an Array with slice()".pull/13227/head
commit
7a09ce6068
|
@ -258,7 +258,7 @@
|
|||
],
|
||||
"tests": [
|
||||
"assert.deepEqual(forecast(['cold', 'rainy', 'warm', 'sunny', 'cool', 'thunderstorms']), ['warm', 'sunny'], 'message: <code>forecast</code> should return <code>[\"warm\", \"sunny\"]');",
|
||||
"assert.notStrictEqual(forecast.toString().search(/\\.slice\\(/), -1, 'message: The <code>forecast</code> function should utilize the <code>slice()</code> method');"
|
||||
"assert(/\\.slice\\(/.test(code), 'message: The <code>forecast</code> function should utilize the <code>slice()</code> method');"
|
||||
],
|
||||
"type": "waypoint",
|
||||
"solutions": [],
|
||||
|
|
Loading…
Reference in New Issue