presentation version
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | bild', 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`<Bild />`);
|
||||
|
||||
assert.equal(this.element.textContent.trim(), '');
|
||||
|
||||
});
|
||||
});
|
||||
@@ -12,15 +12,7 @@ module('Integration | Component | produkt', function(hooks) {
|
||||
|
||||
await render(hbs`<Produkt />`);
|
||||
|
||||
assert.equal(this.element.textContent.trim(), '');
|
||||
assert.dom('.produkt img').isVisible();
|
||||
|
||||
// Template block usage:
|
||||
await render(hbs`
|
||||
<Produkt>
|
||||
template block text
|
||||
</Produkt>
|
||||
`);
|
||||
|
||||
assert.equal(this.element.textContent.trim(), 'template block text');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | rezept', 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`<Rezept />`);
|
||||
assert.dom('.rezept h4').hasText('Zutaten:');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user