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:
@ -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": [],
|
||||||
|
Reference in New Issue
Block a user