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

Fix to test string in challenge 'Serve an HTML file'
This commit is contained in:
Peter Weinberg
2017-02-04 22:09:53 -05:00
committed by GitHub

View File

@ -94,7 +94,7 @@
"tests": [ "tests": [
{ {
"text" : "Your app should serve the file views/index.html", "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": [], "solutions": [],