Datenanbindung und Kategorie Komponente implementiert.

This commit is contained in:
2020-05-29 01:19:32 +02:00
parent aff7e6a04f
commit 5b9410cf1c
14 changed files with 258 additions and 78 deletions
@@ -3,22 +3,22 @@ import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | produkte', function(hooks) {
module('Integration | Component | kategorie', 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`<Produkte />`);
await render(hbs`<Kategorie />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<Produkte>
<Kategorie>
template block text
</Produkte>
</Kategorie>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
@@ -3,22 +3,22 @@ import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | rezepte', function(hooks) {
module('Integration | Component | produkt', 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`<Rezepte />`);
await render(hbs`<Produkt />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<Rezepte>
<Produkt>
template block text
</Rezepte>
</Produkt>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
@@ -1,26 +0,0 @@
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 | zettel', 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`<Zettel />`);
assert.equal(this.element.textContent.trim(), '');
// Template block usage:
await render(hbs`
<Zettel>
template block text
</Zettel>
`);
assert.equal(this.element.textContent.trim(), 'template block text');
});
});