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

Handling autolink nodes too, not only text nodes #38

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

jespino
Copy link
Contributor

@jespino jespino commented Jan 26, 2019

No description provided.

Copy link
Contributor

@coreyhulen coreyhulen left a comment

Choose a reason for hiding this comment

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

@jespino
Copy link
Contributor Author

jespino commented Jan 26, 2019

Sure

@jespino
Copy link
Contributor Author

jespino commented Jan 26, 2019

Actually, is not there, must be in the plugin_test.go, because autolink.go only deals with the replacement of text, don't care about markdown or nodes.

@jespino
Copy link
Contributor Author

jespino commented Jan 26, 2019

Done :)

@jespino
Copy link
Contributor Author

jespino commented Jan 26, 2019

I added the t.Run in the text to be more "verbose" about which cases are working and which are failing.

server/plugin.go Outdated Show resolved Hide resolved
@ThiefMaster
Copy link
Contributor

Actually, is not there, must be in the plugin_test.go, because autolink.go only deals with the replacement of text, don't care about markdown or nodes.

What about merging the two sets of test cases, moving them to a single place, and then using same set of test data for both plugin_test and autolink_test?

@jespino
Copy link
Contributor Author

jespino commented Jan 31, 2019

@ThiefMaster I think it can be done, but I'm not 100% sure about doing it, I like to have the test cases inside the test itself, if I have to import shared testcases elsewhere will look weird. Anyway, if you have an strong opinion here, you can make a PR and we can discuss it seeing how it ends.

@jespino jespino merged commit b0ad829 into mattermost-community:master Jan 31, 2019
@jespino jespino deleted the handling-autolink-nodes branch January 31, 2019 09:05
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

3 participants