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
+12
View File
@@ -0,0 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Adapter | application', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let adapter = this.owner.lookup('adapter:application');
assert.ok(adapter);
});
});
+12
View File
@@ -0,0 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | produkte', function(hooks) {
setupTest(hooks);
test('it has the right type', function(assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('produkt', {titel: 'Testprodukt'});
assert.ok(model);
});
});
+12
View File
@@ -0,0 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | rezepte', function(hooks) {
setupTest(hooks);
test('it has the right type', function(assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('rezept', {titel: 'Testrezept'});
assert.ok(model);
});
});
+11
View File
@@ -0,0 +1,11 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Route | zettel', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
let route = this.owner.lookup('route:zettel');
assert.ok(route);
});
});
@@ -0,0 +1,23 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Serializer | application', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let store = this.owner.lookup('service:store');
let serializer = store.serializerFor('produkt');
assert.ok(serializer);
});
test('it serializes records', function(assert) {
let store = this.owner.lookup('service:store');
let record = store.createRecord('produkt', {});
let serializedRecord = record.serialize();
assert.ok(serializedRecord);
});
});