2024-11-22 14:55:41 +00:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupRenderingTest } from 'frontend-reactive/tests/helpers';
|
|
|
|
import { render } from '@ember/test-helpers';
|
|
|
|
import { hbs } from 'ember-cli-htmlbars';
|
2024-11-21 15:34:20 +00:00
|
|
|
|
|
|
|
module('Integration | Component | account/profilepicture', function (hooks) {
|
2024-11-22 14:55:41 +00:00
|
|
|
setupRenderingTest(hooks);
|
2024-11-21 15:34:20 +00:00
|
|
|
|
|
|
|
test('it renders', async function (assert) {
|
|
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
|
|
// Handle any actions with this.set('myAction', function(val) { ... });
|
|
|
|
|
2024-11-22 14:55:41 +00:00
|
|
|
await render(hbs`<Account::Header::Profilepicture />`);
|
2024-11-21 15:34:20 +00:00
|
|
|
|
2024-11-22 14:55:41 +00:00
|
|
|
assert.dom().hasText('');
|
2024-11-21 15:34:20 +00:00
|
|
|
|
|
|
|
// Template block usage:
|
|
|
|
await render(hbs`
|
|
|
|
<Account::Profilepicture>
|
|
|
|
template block text
|
|
|
|
</Account::Profilepicture>
|
2024-11-22 14:55:41 +00:00
|
|
|
`);
|
2024-11-21 15:34:20 +00:00
|
|
|
|
2024-11-22 14:55:41 +00:00
|
|
|
assert.dom().hasText('template block text');
|
|
|
|
});
|
|
|
|
});
|