Merge pull request #13113 from Greenheart/fix/array-slice-cleaner-assertion

fix(challenge): Cleaner assertion for "Copy an Array with slice()".
pull/13227/head
Eric Leung 2017-02-07 08:38:37 -08:00 committed by GitHub
commit 7a09ce6068
1 changed files with 1 additions and 1 deletions

View File

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