linstrom/frontend-reactive/tests/integration/components/util/map-edit-test.ts
mStar f0638af99f More utility components
One for a "map" of sorts and one for selecting one element of a list
2024-10-25 16:54:11 +02:00

26 lines
750 B
TypeScript

import { module, test } from 'qunit';
import { setupRenderingTest } from 'frontend-reactive/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | util/map-edit', function (hooks) {
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`<Util::MapEdit />`);
assert.dom().hasText('');
// Template block usage:
await render(hbs`
<Util::MapEdit>
template block text
</Util::MapEdit>
`);
assert.dom().hasText('template block text');
});
});