From 7d82b0776df2b05a70f3da1d9eb1fd39eef0ced9 Mon Sep 17 00:00:00 2001 From: Christian Lapinig Date: Thu, 25 Feb 2016 01:15:16 -0800 Subject: [PATCH] Fix test case so only the word submit can pass test --- .../html5-and-css.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/html5-and-css.json b/seed/challenges/01-front-end-development-certification/html5-and-css.json index 2de7c02f51..3dc6909f06 100644 --- a/seed/challenges/01-front-end-development-certification/html5-and-css.json +++ b/seed/challenges/01-front-end-development-certification/html5-and-css.json @@ -32,8 +32,8 @@ "¡Bienvenido/a al primer desafío de programación de Free Code Camp!", "Puedes editar tu código en tu editor de texto, que hemos incrustado en esta página web.", "¿Ves el código en tu editor de texto que dice <h1>Hello</h1>? Ese es un elemento HTML.", - "La mayoría de los elementos HTML tienen una etiqueta de apertura y una etiqueta de cierre.", - "Las etiquetas de apertura se ven como:", + "La mayoría de los elementos HTML tienen una etiqueta de apertura y una etiqueta de cierre.", + "Las etiquetas de apertura se ven como:", "<h1>", " Las etiquetas de cierre se ven como:", "</h1>", @@ -1765,7 +1765,7 @@ "tests": [ "assert($(\"form\").children(\"button\").length > 0, 'message: Your form should have a button inside it.');", "assert($(\"button\").attr(\"type\") === \"submit\", 'message: Your submit button should have the attribute type set to submit.');", - "assert($(\"button\").text().match(/submit/gi), 'message: Your submit button should have the text \"Submit\".');", + "assert($(\"button\").text().match(/^\\s*submit\\s*$/gi), 'message: Your submit button should only have the text \"Submit\".');", "assert(code.match(/<\\/button>/g) && code.match(/