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

Parses tags correctly #37

Merged
merged 2 commits into from May 3, 2016
Merged

Conversation

parrish
Copy link
Contributor

@parrish parrish commented May 3, 2016

Also fixes a typo and bumps to 4.1.2

This aligns tag parsing with talk and also fixes the bug reported here

Also fixes a typo and bumps to 4.1.2
@brian-c
Copy link
Contributor

brian-c commented May 3, 2016

I've fixed Travis for this repo, so those failing tests are legit.

Reproduced failures locally too.

Error: expected '[#test](/talk/search?query=test) sentence[ #tag](/talk/search?query=tag) and url: http://docs.panoptes.apiary.io/#reference/user/users-collection/list-all-users' to equal '#test sentence #tag and url: http://docs.panoptes.apiary.io/#reference/user/users-collection/list-all-users'


const htmlSentence = replaceSymbols(sentence, {project, baseURI})
expect(htmlSentence).to.equal(`#test sentenc #tag and url: http://docs.panoptes.apiary.io/#reference/user/users-collection/list-all-users`)
expect(htmlSentence).to.equal(`[#test](/talk/search?query=test) sentence[#tag](/talk/search?query=tag) and url: http://docs.panoptes.apiary.io/#reference/user/users-collection/list-all-users`)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how this could've passed before, it was expecting the tags to not be parsed at all

@parrish
Copy link
Contributor Author

parrish commented May 3, 2016

The tests should be fixed now, but Travis keeps erroring out with:

Error:
Zuul tried to run tests in saucelabs, however no saucelabs credentials were provided.

@brian-c
Copy link
Contributor

brian-c commented May 3, 2016

Perhaps I did not fix Travis. PR coming.

This looks good though, thanks!

@brian-c brian-c merged commit 9032080 into zooniverse:master May 3, 2016
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

2 participants