Merge pull request #13149 from JosephLivengood/fix/node-server-static

Fix to test string in challenge 'Serve an HTML file'
pull/13152/head
Peter Weinberg 2017-02-04 22:09:53 -05:00 committed by GitHub
commit 402bc57408
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@
"tests": [
{
"text" : "Your app should serve the file views/index.html",
"testString" : "getUserInput => $.get(getUserInput('url')).then(data => { assert.match(data, /<h1>.*<\\/h1>/. 'Your app does not serve the expected HTML'); }, xhr => { throw new Error(xhr.responseText); })"
"testString" : "getUserInput => $.get(getUserInput('url')).then(data => { assert.match(data, /<h1>.*<\\/h1>/, 'Your app does not serve the expected HTML'); }, xhr => { throw new Error(xhr.responseText); })"
}
],
"solutions": [],