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

Handle Null and Promise.resolve(null) in renderMetaTags + renderLinkTags #805

Merged

Conversation

drewpc
Copy link
Collaborator

@drewpc drewpc commented Jan 6, 2017

Fixed handling of null and Promise.resolve(null) for renderMetaTags and renderLinkTags. Added a test harness for renderMiddleware which was used to recreate the problem and ensure successful resolution. Corresponds to issue #789

it("don't render meta tags", (finishTest) => {
_testFunctions.renderMetaTags(page, mockSocket)
.then(() => {
expect(mockSocket.toString()).toMatch('');
Copy link
Contributor

Choose a reason for hiding this comment

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

Whoa, cool!

@gigabo gigabo added the bug An issue with the system label Jan 6, 2017
@gigabo
Copy link
Contributor

gigabo commented Jan 6, 2017

LGTM 👍

Thanks @drewpc!

@drewpc
Copy link
Collaborator Author

drewpc commented Jan 6, 2017

I forgot to add a 'normal' values check! I'll do that now.

@doug-wade
Copy link
Collaborator

lgtm :shipit:

@drewpc
Copy link
Collaborator Author

drewpc commented Jan 9, 2017

No changes since I submitted the PR. I saw that there were merge conflicts based on the latest dependency changes in the master branch and resolved the conflicts.

@gigabo
Copy link
Contributor

gigabo commented Jan 9, 2017

Thanks for jumping on that.

@gigabo gigabo merged commit aabcbd8 into redfin:master Jan 9, 2017
@drewpc drewpc deleted the patch-handle-null-promises-resolutions branch January 11, 2017 17:54
@drewpc drewpc modified the milestone: 0.6.0 Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants