linstrom/frontend-reactive/tests/integration/components/auth/registration-form-test.ts
mStar e802027236 I FUCKING DID IT
Added a helper component for managing a list of strings.
This component could, in theory, also be turned into a generic one
for any type of data
2024-10-24 16:15:08 +02:00

26 lines
786 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 | auth/registration-form', 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`<Auth::RegistrationForm />`);
assert.dom().hasText('');
// Template block usage:
await render(hbs`
<Auth::RegistrationForm>
template block text
</Auth::RegistrationForm>
`);
assert.dom().hasText('template block text');
});
});