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:
@ -30,9 +30,8 @@ tests:
|
|||||||
testString: assert.deepEqual(bouncer(["a", "b", "c"]), ["a", "b", "c"]);
|
testString: assert.deepEqual(bouncer(["a", "b", "c"]), ["a", "b", "c"]);
|
||||||
- text: <code>bouncer([false, null, 0, NaN, undefined, ""])</code> should return <code>[]</code>.
|
- text: <code>bouncer([false, null, 0, NaN, undefined, ""])</code> should return <code>[]</code>.
|
||||||
testString: assert.deepEqual(bouncer([false, null, 0, NaN, undefined, ""]), []);
|
testString: assert.deepEqual(bouncer([false, null, 0, NaN, undefined, ""]), []);
|
||||||
- text: <code>bouncer([1, null, NaN, 2, undefined])</code> should return <code>[1, 2]</code>.
|
- text: <code>bouncer([null, NaN, 1, 2, undefined])</code> should return <code>[1, 2]</code>.
|
||||||
testString: assert.deepEqual(bouncer([1, null, NaN, 2, undefined]), [1, 2]);
|
testString: assert.deepEqual(bouncer([null, NaN, 1, 2, undefined]), [1, 2]);
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user