Use "Submit" in test prompt for "Add a Submit Button to a Form"

The description says the text should be "Submit", but the test shows "submit" (lower cased). Let's try to make them the same :)
pull/6082/head
Felix Yan 2016-01-12 22:09:14 +08:00
parent 4c9026a354
commit 4ad29d0c92
1 changed files with 1 additions and 1 deletions

View File

@ -1820,7 +1820,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 <code>type</code> set to <code>submit</code>.');",
"assert($(\"button\").text().match(/submit/gi), 'message: Your submit button should have the text \"submit\".');",
"assert($(\"button\").text().match(/submit/gi), 'message: Your submit button should have the text \"Submit\".');",
"assert(code.match(/<\\/button>/g) && code.match(/<button/g) && code.match(/<\\/button>/g).length === code.match(/<button/g).length, 'message: Make sure your <code>button</code> element has a closing tag.');"
],
"type": "waypoint",