From 54d59ffc37aea317a099cd7d0ee2215586d1d07e Mon Sep 17 00:00:00 2001 From: Paul Gamble Date: Tue, 19 May 2020 06:44:59 -0400 Subject: [PATCH] Fix/curriculum en es6 complete a promise - modified test messages to be more clearer (#38836) * Changed tests messages to indicate string * minor tweak with wording of message Co-authored-by: Oliver Eyton-Williams --- .../es6/complete-a-promise-with-resolve-and-reject.english.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md index acd3f41c5a..718d69f00f 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/complete-a-promise-with-resolve-and-reject.english.md @@ -32,9 +32,9 @@ Make the promise handle success and failure. If responseFromServer ```yml tests: - - text: resolve should be executed when the if condition is true. + - text: resolve should be called with the expected string when the if condition is true. testString: assert(removeJSComments(code).match(/if\s*\(\s*responseFromServer\s*\)\s*{\s*resolve\s*\(\s*('|"|`)We got the data\1\s*\)(\s*|\s*;\s*)}/g)); - - text: reject should be executed when the if condition is false. + - text: reject should be called with the expected string when the if condition is false. testString: assert(removeJSComments(code).match(/}\s*else\s*{\s*reject\s*\(\s*('|"|`)Data not received\1\s*\)(\s*|\s*;\s*)}/g)); ```