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

[Glimmer2] Port {{loc}} helper test to ember-glimmer #13129

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

code0100fun
Copy link
Contributor

Also implements helper in Glimmer

Ember.STRINGS = this.oldString;
}

['@test it lets the original value through by default']() {
Copy link
Contributor

Choose a reason for hiding this comment

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

These tests should go through the "The I-N-U-R cycle" mentioned in #13127.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Woops, right. Will fix that, thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems like this only needs to check initial render and no-op rerender, not update and reset. Does that seem correct?

@mixonic
Copy link
Member

mixonic commented Mar 19, 2016

It seems OK to punt on, but this should likely be testing the bound behaviors as well, which do exist: https://ember-twiddle.com/0ec0748d515ec3b87414?openFiles=application.controller.js%2C It seems an oversight that there are no tests for those cases.

Followup issue: #13132

@code0100fun
Copy link
Contributor Author

@mixonic, I'll work on adding some tests for the bound params.

Also implements helper in Glimmer. Only tested initial render and no-op
rerender because the helper does not accept any bound attributes.
chancancode added a commit that referenced this pull request Mar 19, 2016
[Glimmer2] Port `{{loc}}` helper test to `ember-glimmer`
@chancancode chancancode merged commit a358c59 into emberjs:master Mar 19, 2016
@chancancode
Copy link
Member

Thanks! @code0100fun! Please send a follow up PR for @mixonic's request 😄

@code0100fun code0100fun deleted the glimmer-loc-helper branch March 20, 2016 20:52
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.

4 participants