From 5bac32e810580ed63cbbd624fe1fcffec43288e7 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Fri, 23 Sep 2016 10:01:48 -0700 Subject: [PATCH] Feat(challenges): Let tests be objects --- .../html5-and-css.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/html5-and-css.json b/challenges/01-front-end-development-certification/html5-and-css.json index dc697a898e..3ad2ac7e59 100644 --- a/challenges/01-front-end-development-certification/html5-and-css.json +++ b/challenges/01-front-end-development-certification/html5-and-css.json @@ -24,7 +24,10 @@ "

Hello

" ], "tests": [ - "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'message: Your h1 element should have the text \"Hello World\".');" + { + "text": "Your h1 element should have the text \"Hello World\".');", + "testString": "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\".');" + } ], "type": "waypoint", "challengeType": 0,