added a test to challenge:falsy-bouncer (#37973)

* added a test to challenge:falsy-bouncer

* modified tests of challenge:falsy-bouncer
This commit is contained in:
Shubham Shah 2019-12-30 04:47:17 +05:30 committed by Tom
parent 585bb46d73
commit 3cc0395964

View File

@ -30,9 +30,8 @@ tests:
testString: assert.deepEqual(bouncer(["a", "b", "c"]), ["a", "b", "c"]);
- text: <code>bouncer([false, null, 0, NaN, undefined, ""])</code> should return <code>[]</code>.
testString: assert.deepEqual(bouncer([false, null, 0, NaN, undefined, ""]), []);
- text: <code>bouncer([1, null, NaN, 2, undefined])</code> should return <code>[1, 2]</code>.
testString: assert.deepEqual(bouncer([1, null, NaN, 2, undefined]), [1, 2]);
- text: <code>bouncer([null, NaN, 1, 2, undefined])</code> should return <code>[1, 2]</code>.
testString: assert.deepEqual(bouncer([null, NaN, 1, 2, undefined]), [1, 2]);
```
</section>