diff --git a/challenges/03-back-end-development-certification/automated-testing-and-debugging.json b/challenges/03-back-end-development-certification/automated-testing-and-debugging.json index 51ed5033288..90e38c5139c 100644 --- a/challenges/03-back-end-development-certification/automated-testing-and-debugging.json +++ b/challenges/03-back-end-development-certification/automated-testing-and-debugging.json @@ -53,10 +53,10 @@ "console.log(typeof {});" ], "tests":[ - "assert(editor.getValue().match(/console\\.log\\(typeof[\\( ]\"\"\\)?\\);/gi), 'message: You should console.log the typeof a string.');", - "assert(editor.getValue().match(/console\\.log\\(typeof[\\( ]0\\)?\\);/gi), 'message: You should console.log the typeof a number.');", - "assert(editor.getValue().match(/console\\.log\\(typeof[\\( ]\\[\\]\\)?\\);/gi), 'message: You should console.log the typeof an array.');", - "assert(editor.getValue().match(/console\\.log\\(typeof[\\( ]\\{\\}\\)?\\);/gi), 'message: You should console.log the typeof a object.');" + "assert(code.match(/console\\.log\\(typeof[\\( ][\"'].*[\"']\\)?\\);/), 'message: You should console.log the typeof a string.');", + "assert(code.match(/console\\.log\\(typeof[\\( ]\\d+\\.?\\d*\\)?\\);/), 'message: You should console.log the typeof a number.');", + "assert(code.match(/console\\.log\\(typeof[\\( ]\\[\\]\\)?\\);/), 'message: You should console.log the typeof an array.');", + "assert(code.match(/console\\.log\\(typeof[\\( ]\\{\\}\\)?\\);/), 'message: You should console.log the typeof a object.');" ], "challengeSeed":[ "",