-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16307 from rwjblue/fix-display-for-text-field
[BUGFIX beta] Ensure proper .toString() of default components.
- Loading branch information
Showing
6 changed files
with
42 additions
and
6 deletions.
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
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
24 changes: 24 additions & 0 deletions
24
packages/ember-glimmer/tests/integration/components/to-string-test.js
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { moduleFor, RenderingTest } from '../../utils/test-case'; | ||
import { Checkbox, Component, LinkComponent, TextArea, TextField } from 'ember-glimmer'; | ||
|
||
moduleFor('built-in component toString', class AbstractAppendTest extends RenderingTest { | ||
'@test text-field has the correct toString value'(assert) { | ||
assert.strictEqual(TextField.toString(), '@ember/component/text-field'); | ||
} | ||
|
||
'@test checkbox has the correct toString value'(assert) { | ||
assert.strictEqual(Checkbox.toString(), '@ember/component/checkbox'); | ||
} | ||
|
||
'@test text-area has the correct toString value'(assert) { | ||
assert.strictEqual(TextArea.toString(), '@ember/component/text-area'); | ||
} | ||
|
||
'@test component has the correct toString value'(assert) { | ||
assert.strictEqual(Component.toString(), '@ember/component'); | ||
} | ||
|
||
'@test LinkTo has the correct toString value'(assert) { | ||
assert.strictEqual(LinkComponent.toString(), '@ember/routing/link-component'); | ||
} | ||
}); |