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

Remove this.setupRouter from tests #176

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

xg-wang
Copy link
Contributor

@xg-wang xg-wang commented Jan 18, 2021

This is no longer needed when emberjs/ember.js#19326 lands in the next release (should be 3.25.0, but I could be wrong)

@xg-wang
Copy link
Contributor Author

xg-wang commented Feb 10, 2021

The fix is released in 3.25.1, 3.24.2 emberjs/ember.js#19387 (comment)

Copy link
Collaborator

@chancancode chancancode left a comment

Choose a reason for hiding this comment

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

Nice! Can you also rebase to kick CI?


> Zoey says...
>
> As its name implies, the `beforeEach` hook runs *once* before each `test` function is executed. This hook is the ideal place to set up anything that might be needed by all test cases in the file. On the other hand, if you need to do any cleanup after your tests, there is an `afterEach` hook!
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to move this somewhere else? Do we use beforeEach elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! It is indeed taught on this page. I've added it back

@xg-wang
Copy link
Contributor Author

xg-wang commented Feb 10, 2021

hmm the test is still failing, I'm looking into the regression

This is no longer needed when emberjs/ember.js#19326 lands
@xg-wang
Copy link
Contributor Author

xg-wang commented Mar 8, 2021

@chancancode this is passing on new releases

@chancancode
Copy link
Collaborator

🎉

@chancancode chancancode merged commit d09b653 into ember-learn:master Mar 8, 2021
@xg-wang xg-wang deleted the patch-1 branch March 8, 2021 16:29
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