presentation version

This commit is contained in:
2020-06-10 01:25:47 +02:00
parent 5b9410cf1c
commit 1855f50d0d
35 changed files with 1282 additions and 187 deletions
+18
View File
@@ -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(), '');
});
});
+1 -9
View File
@@ -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:');
});
});