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

Add static examples for [Node] #2409

Merged
merged 4 commits into from
Dec 3, 2018
Merged

Add static examples for [Node] #2409

merged 4 commits into from
Dec 3, 2018

Conversation

paulmelnikow
Copy link
Member

@paulmelnikow paulmelnikow commented Nov 27, 2018

Ref #1961

@paulmelnikow paulmelnikow added the service-badge New or updated service badge label Nov 27, 2018
@shields-ci
Copy link

Warnings
⚠️ This PR modified service code for node but not its test code.
That's okay so long as it's refactoring existing code.
Messages
📖 ✨ Thanks for your contribution to Shields, @paulmelnikow!

Generated by 🚫 dangerJS

@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-2409 November 27, 2018 05:53 Inactive
},
]
}

static renderStaticExample({ tag, nodeVersionRange }) {
// This should match the behavior of `async render()`, which is enforced
// with a unit test.
Copy link
Member

Choose a reason for hiding this comment

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

It took me a while to work out that the reason why we have to do this non-standard thing is because render() has to call an async function but we need this to be a synchronous call. Can we make this extra clear in the comment here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the comment. See if that's clearer?

@paulmelnikow paulmelnikow temporarily deployed to shields-staging-pr-2409 December 3, 2018 05:11 Inactive
Copy link
Member

@chris48s chris48s left a comment

Choose a reason for hiding this comment

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

cheers :)

@shields-deployment
Copy link

This pull request was merged to master branch. This change is now waiting for deployment, which will usually happen within a few days. Stay tuned by joining our #ops channel on Discord!

After deployment, changes are copied to gh-pages branch:

@paulmelnikow paulmelnikow deleted the node-ex branch December 3, 2018 20:55
@paulmelnikow paulmelnikow mentioned this pull request Dec 10, 2018
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants