-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Glint support to the
AuHelpText
component
- Loading branch information
Showing
5 changed files
with
44 additions
and
27 deletions.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
addon/components/au-help-text.gjs → addon/components/au-help-text.gts
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import AuHelpText from '@appuniversum/ember-appuniversum/components/au-help-text'; | ||
import { render } from '@ember/test-helpers'; | ||
import { setupRenderingTest } from 'ember-qunit'; | ||
import { module, test } from 'qunit'; | ||
|
||
module('Integration | Component | au-help-text', function (hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
test('it accepts block content and extra attributes', async function (assert) { | ||
await render( | ||
<template> | ||
<AuHelpText data-test-help-text> | ||
Some help text | ||
</AuHelpText> | ||
</template>, | ||
); | ||
|
||
assert.dom('[data-test-help-text]').hasText('Some help text'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
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