linstrom/frontend-reactive/tests/integration/components/timeline/note-test.ts

27 lines
753 B
TypeScript
Raw Normal View History

2024-08-22 17:57:53 +00:00
import { module, test } from 'qunit';
import { setupRenderingTest } from 'frontend-reactive/tests/helpers';
2024-08-22 17:57:53 +00:00
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | timeline/note', function (hooks) {
2024-08-22 17:57:53 +00:00
setupRenderingTest(hooks);
test('it renders', async function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<Timeline::Note />`);
2024-08-22 17:57:53 +00:00
assert.dom().hasText('');
// Template block usage:
await render(hbs`
<Timeline::Note>
2024-08-22 17:57:53 +00:00
template block text
</Timeline::Note>
2024-08-22 17:57:53 +00:00
`);
assert.dom().hasText('template block text');
});
});