fix(challenge): Cleaner assertion for "Copy an Array with slice()".

pull/18182/head
Samuel Plumppu 2017-02-03 17:43:05 +01:00
parent 5fca995ff4
commit 695d1c7a93
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,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": [],