-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[Glimmer2] Mark glimmer2 tests on context.isTruthy to be @htmlbars only #13441
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
Conversation
|
I actually think we need to update the tests to use a real proxy. This is still just testing a pojo. https://github.com/emberjs/ember.js/pull/13441/files#diff-f070d41054fd84b7bc5a98e949ed81dbR170 There are other places where we are testing pojos with |
f841039 to
207aa39
Compare
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.
can you change line 170 to set proxyThing.content? We should not be setting isTruthy directly (and I guess line 174 doesn't make sense anymore)
|
Thank you for picking this up and sorry for the delay! Left some comments on the diffs. Looking good! |
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.
why are we testing setting isTruthy directly?
2f19dca to
f20c48d
Compare
|
Rebased to fix CI issue. @krisselden @chancancode let me know if my comments make sense and if we should remove that last test. I also think that the array/objectTestCases should cover the necessary proxy conditional logic, but let me know if im missing something |
|
☔ The latest upstream changes (presumably #13502) made this pull request unmergeable. Please resolve the merge conflicts. |
f20c48d to
9353f44
Compare
|
☔ The latest upstream changes (presumably 0f2d9e6) made this pull request unmergeable. Please resolve the merge conflicts. |
9353f44 to
95f83be
Compare
95f83be to
b92fb2c
Compare
|
|
||
| ['@test it tests for `isTruthy` on Ember objects if available']() { | ||
| // Marking as @htmlbars since POJOs can no longer masquerade as Proxies in glimmer2. See proxy tests below. | ||
| ['@htmlbars it tests for `isTruthy` on Ember objects if available']() { |
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.
If this is not supported behavior (and that is basically what we are saying), we should just remove this test.
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.
Is it not problematic to remove code coverage for legacy behaviour though?
|
☔ The latest upstream changes (presumably #13680) made this pull request unmergeable. Please resolve the merge conflicts. |
Fixes the FIXME introduced in #13332
cc @chancancode