Skip to content

Adding tests for docs-page blueprint #351

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

Merged
merged 2 commits into from
Apr 8, 2019

Conversation

scalvert
Copy link
Contributor

@scalvert scalvert commented Apr 6, 2019

As promised, I've circled back and updated the node tests to include blueprint tests for docs-page now that our node tests use mocha/chai.

This PR:

  • Adds ember-cli-blueprint-test-helpers package
  • Adds blueprint tests for docs-page for both non-pods and pods
  • Fixes a bug that was uncovered when writing my tests (yay tests! 🎉)

@scalvert
Copy link
Contributor Author

scalvert commented Apr 6, 2019

@samselikoff @dfreeman @pzuraq

My guilt for submitting code with no tests is no more!

@@ -98,7 +96,7 @@ function writeRoute(action, name, options) {

function updateDocsTemplate(options) {
let routeName = options.entity.name;
let docsTemplatePath = options.pods
let docsTemplatePath = options.pod
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found this wee bug while I was writing tests. I guess I missed it with my manual testing (I'm old and senile...)

@samselikoff
Copy link
Contributor

wow - useful examples to have for future reference as well! Nice work 👍

@samselikoff samselikoff merged commit a64bfca into ember-learn:master Apr 8, 2019
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.

2 participants