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 check
pull/36539/head
lasjorg 2019-07-30 15:33:37 +02:00 committed by Tom
parent 8841c866b3
commit 881be7121e
1 changed files with 3 additions and 3 deletions

View File

@ -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]));
```