Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests for Change text with Click Events #7361

Merged
merged 1 commit into from Mar 6, 2016
Merged

Fix tests for Change text with Click Events #7361

merged 1 commit into from Mar 6, 2016

Conversation

raisedadead
Copy link
Member

This commit adds checks to alow .text along with .html,
as per the discussion in the issue.

Tested locally.

Closes #7319

@BerkeleyTrue BerkeleyTrue added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Mar 2, 2016
@@ -108,7 +108,7 @@
"</div>"
],
"tests": [
"assert(code.match(/\\$\\s*?\\(\\s*?(?:'|\")\\.message(?:'|\")\\s*?\\)\\s*?\\.html\\s*?\\(\\s*?(?:'|\")Here\\sis\\sthe\\smessage(?:'|\")\\s*?\\);/gi), 'message: Clicking the \"Get Message\" button should give the element with the class <code>message</code> the text \"Here is the message\".');"
"assert(code.match(/\\$\\s*?\\(\\s*?(?:'|\")\\.message(?:'|\")\\s*?\\)\\s*?\\.html|.text\\s*?\\(\\s*?(?:'|\")Here\\sis\\sthe\\smessage(?:'|\")\\s*?\\);/gi), 'message: Clicking the \"Get Message\" button should give the element with the class <code>message</code> the text \"Here is the message\".');"

This comment was marked as off-topic.

This commit adds checks to alow `.text` along with `.html`,
as per the discussion in the issue.
@camperbot
Copy link
Contributor

@raisedadead updated the pull request.

@raisedadead
Copy link
Member Author

@SaintPeter this one is good to go! Please have a look.

@ltegman
Copy link
Member

ltegman commented Mar 6, 2016

👍

ltegman added a commit that referenced this pull request Mar 6, 2016
…events

Fix tests for Change text with Click Events
@ltegman ltegman merged commit f1e5b16 into freeCodeCamp:staging Mar 6, 2016
@BerkeleyTrue BerkeleyTrue removed the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Mar 6, 2016
@raisedadead raisedadead deleted the fix/change-text-with-click-events branch March 8, 2016 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants