From 881be7121eccfff405be944c0c32e6fba501b4ae Mon Sep 17 00:00:00 2001 From: lasjorg <28780271+lasjorg@users.noreply.github.com> Date: Tue, 30 Jul 2019 15:33:37 +0200 Subject: [PATCH] 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 --- ...at-every-element-in-an-array-meets-a-criteria.english.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-every-method-to-check-that-every-element-in-an-array-meets-a-criteria.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-every-method-to-check-that-every-element-in-an-array-meets-a-criteria.english.md index 9b94dc7f353..8bb687acdf1 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-every-method-to-check-that-every-element-in-an-array-meets-a-criteria.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-every-method-to-check-that-every-element-in-an-array-meets-a-criteria.english.md @@ -32,11 +32,11 @@ tests: - text: Your code should use the every method. testString: assert(code.match(/\.every/g)); - text: checkPositive([1, 2, 3, -4, 5]) should return false. - testString: assert(!checkPositive([1, 2, 3, -4, 5])); + testString: assert.isFalse(checkPositive([1, 2, 3, -4, 5])); - text: checkPositive([1, 2, 3, 4, 5]) should return true. - testString: assert(checkPositive([1, 2, 3, 4, 5])); + testString: assert.isTrue(checkPositive([1, 2, 3, 4, 5])); - text: checkPositive([1, -2, 3, -4, 5]) should return false. - testString: assert(!checkPositive([1, -2, 3, -4, 5])); + testString: assert.isFalse(checkPositive([1, -2, 3, -4, 5])); ```