fix(challenges): fix 2nd test bug

ISSUES CLOSED: #17769, #17039, #16967
pull/18182/head
ivan3123708 2018-07-02 09:04:50 +02:00 committed by Kristofer Koishigawa
parent 4dc7589a8c
commit 362fc8afc6
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@
{ {
"text": "A POST request to /login correctly redirects to /", "text": "A POST request to /login correctly redirects to /",
"testString": "testString":
"getUserInput => $.post(getUserInput('url')+ '/login') .then(data => { assert.match(data, /Home page/gi, 'A login attempt at this point should redirect to the homepage since we do not have any registered users'); }, xhr => { throw new Error(xhr.statusText); })" "getUserInput => $.post(getUserInput('url')+ '/login') .then(data => { assert.match(data, /Looks like this page is being rendered from Pug into HTML!/gi, 'A login attempt at this point should redirect to the homepage since we do not have any registered users'); }, xhr => { throw new Error(xhr.statusText); })"
} }
], ],
"solutions": [], "solutions": [],