-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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] Migrating hash helper #13093
Conversation
|
||
this.runTask(() => set(this.context, 'firstName', 'Sergio')); | ||
|
||
this.assertText('Sergio Arbeo'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should test resetting to Marisa
after this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
17a5991
to
2d77589
Compare
I think we probably want to leave the htmlbars implementation alone (i.e. duplicating the code, instead of symlinking). The final implementation of the glimmer version will probably be a bit different. (I think we ultimately want to implement it as an "internal" helper like inline if/unless, where the helper gets the |
|
||
this.assertText('Balint'); | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line between L89/90 to balance L6
Other than those line comments and the symlink issue, looks great to me! (We don't have to do the internal helper optimization now, unless you want to.) |
@@ -7,67 +7,65 @@ import { runAppend, runDestroy } from 'ember-runtime/tests/utils'; | |||
|
|||
var view; | |||
|
|||
if (isEnabled('ember-contextual-components')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was introduced in 2.3.0. The rest of changes in this file are just formatting.
@chadhietala sorry :/ I was only saying that we should keep the implementation separate, what you did with the tests before was just fine |
@@ -32,4 +27,4 @@ | |||
|
|||
export default function hashHelper(params, hash, options) { | |||
return hash; | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chancancode Won't we loose the test coverage there for some period time then? Maybe I don't understand. |
6484604
to
db0d6ba
Compare
return hash; | ||
} | ||
|
||
export default helper(hash); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a line here. Probably a github issue.
f9577bd
to
78baff4
Compare
} | ||
|
||
['@test should yield hash of external properties']() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✂️
78baff4
to
27b2af4
Compare
This migrate the hash helper to glimmer2 and moves tests over as well. As a result I remove a contextual-component flag that was still in the hash tests. I also added tests for yielding a hash which was not covered by any tests.
27b2af4
to
b451aa8
Compare
[Glimmer2] Migrating hash helper
☔ The latest upstream changes (presumably #13093) made this pull request unmergeable. Please resolve the merge conflicts. |
Merged in 0e8e343 |
This migrate the hash helper to glimmer2 and moves tests over as well. As a result I remove a contextual-component flag that was still in the hash tests. This also adds tests for
yield
ing a hash which was not covered at all 😄 /cc @chancancode