Skip to content
Browse files

Merge pull request #7371 from JoshFisk/fix/falsybouncertest

Add test to "Falsy Bouncer"
  • Loading branch information...
2 parents 6fa03a9 + f6b4e6d commit f3ad170bab1bbb4766b0b4564dcd7ab8b128f958 @ltegman ltegman committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 seed/challenges/01-front-end-development-certification/basic-bonfires.json
View
3 seed/challenges/01-front-end-development-certification/basic-bonfires.json
@@ -585,7 +585,8 @@
"tests": [
"assert.deepEqual(bouncer([7, \"ate\", \"\", false, 9]), [7, \"ate\", 9], 'message: <code>bouncer([7, \"ate\", \"\", false, 9])</code> should return <code>[7, \"ate\", 9]</code>.');",
"assert.deepEqual(bouncer([\"a\", \"b\", \"c\"]), [\"a\", \"b\", \"c\"], 'message: <code>bouncer([\"a\", \"b\", \"c\"])</code> should return <code>[\"a\", \"b\", \"c\"]</code>.');",
- "assert.deepEqual(bouncer([false, null, 0, NaN, undefined, \"\"]), [], 'message: <code>bouncer([false, null, 0, NaN, undefined, \"\"])</code> should return <code>[]</code>.');"
+ "assert.deepEqual(bouncer([false, null, 0, NaN, undefined, \"\"]), [], 'message: <code>bouncer([false, null, 0, NaN, undefined, \"\"])</code> should return <code>[]</code>.');",
+ "assert.deepEqual(bouncer([1, null, NaN, 2, undefined]), [1, 2], 'message: <code>bouncer([1, null, NaN, 2, undefined])</code> should return <code>[1, 2]</code>.');"
],
"type": "bonfire",
"MDNlinks": [

0 comments on commit f3ad170

Please sign in to comment.
Something went wrong with that request. Please try again.