-
-
Notifications
You must be signed in to change notification settings - Fork 254
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 old code that existed for now unsupported ember-sources (2.4, etc) #1486
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a66a5ac
Re-enable embroider-optimized
NullVoxPopuli 93319ad
Add packageRules
NullVoxPopuli 645f9a6
Add packageRules
NullVoxPopuli feffc63
Add packageRules
NullVoxPopuli d26589e
Add packageRules
NullVoxPopuli 081016d
Volta
NullVoxPopuli 4ea1e26
Try this
NullVoxPopuli 288afe8
Remove old code (which is from unsupported embers), which was causing…
NullVoxPopuli 5b7e9f7
Re-roll lockfiles
NullVoxPopuli 1ca8f4c
Re-roll lockfiles
NullVoxPopuli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,5 +103,8 @@ | |
"@ember/-internals", | ||
"@ember/renderer" | ||
] | ||
}, | ||
"volta": { | ||
"extends": "../package.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,6 @@ module('setupRenderingContext', function (hooks) { | |
'component:js-only': Component.extend({ | ||
classNames: ['js-only'], | ||
}), | ||
'helper:jax': helper(([name]) => `${name}-jax`), | ||
'component:outer-comp': setComponentTemplate( | ||
hbs`outer{{inner-comp}}outer`, | ||
class extends Component {} | ||
|
@@ -287,15 +286,21 @@ module('setupRenderingContext', function (hooks) { | |
}); | ||
|
||
test('can invoke helper', async function (assert) { | ||
await render(hbs`{{jax "max"}}`); | ||
this.setProperties({ | ||
jax: helper(([name]) => `${name}-jax`), | ||
}); | ||
await render(hbs`{{this.jax "max"}}`); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these helpers were (rightfully so!) trying to look up the helper defined in app/helpers/jax. However, that doesn't exist, and since we don't actually support custom resolvers for normal apps, this is fine. These tests are testing that |
||
|
||
assert.equal(this.element.textContent, 'max-jax'); | ||
}); | ||
|
||
test('can pass arguments to helper from context', async function (assert) { | ||
this.setProperties({ | ||
jax: helper(([name]) => `${name}-jax`), | ||
}); | ||
this.set('name', 'james'); | ||
|
||
await render(hbs`{{jax this.name}}`); | ||
await render(hbs`{{this.jax this.name}}`); | ||
|
||
assert.equal(this.element.textContent, 'james-jax'); | ||
}); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
changing this from
false
toEmberTest.checkWaiters()
is a meaningful change, but the only mainingful change in this PR (for consumers).The code for
checkWaiters
is here: https://github.com/emberjs/ember.js/blob/85a4f298f67ff70395cf7f9103682335162e0606/packages/ember-testing/lib/test/waiters.ts#L111and those callbacks are part of the legacy waiter system.
There are existing comments about removing code for accessing legacy-waiter stuff (because ember.js has since abstracted it so we don't need to be so weird in this library) -- cleaning that up can happen in a followup PR, and should be non-breaking, and retain legacy waiter support.
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.
So.... I suppose this should be a patch-release, rather than non-release.