fix(challenge): remove type coercion check for true and false return (#36519)
* fix(challenge): remove type coercion check for true and false return * fix(challenge): use Chai methods for false/true checkpull/36539/head
parent
8841c866b3
commit
881be7121e
|
@ -32,11 +32,11 @@ tests:
|
|||
- text: Your code should use the <code>every</code> method.
|
||||
testString: assert(code.match(/\.every/g));
|
||||
- text: <code>checkPositive([1, 2, 3, -4, 5])</code> should return <code>false</code>.
|
||||
testString: assert(!checkPositive([1, 2, 3, -4, 5]));
|
||||
testString: assert.isFalse(checkPositive([1, 2, 3, -4, 5]));
|
||||
- text: <code>checkPositive([1, 2, 3, 4, 5])</code> should return <code>true</code>.
|
||||
testString: assert(checkPositive([1, 2, 3, 4, 5]));
|
||||
testString: assert.isTrue(checkPositive([1, 2, 3, 4, 5]));
|
||||
- text: <code>checkPositive([1, -2, 3, -4, 5])</code> should return <code>false</code>.
|
||||
testString: assert(!checkPositive([1, -2, 3, -4, 5]));
|
||||
testString: assert.isFalse(checkPositive([1, -2, 3, -4, 5]));
|
||||
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue