Start work on copying API types to the frontend
This commit is contained in:
parent
9d28b20fe0
commit
7591c8ad64
17 changed files with 133 additions and 8 deletions
13
frontend-reactive/tests/unit/models/account-test.js
Normal file
13
frontend-reactive/tests/unit/models/account-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | account', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('account', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | custom account field', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('custom-account-field', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
13
frontend-reactive/tests/unit/models/emote-test.js
Normal file
13
frontend-reactive/tests/unit/models/emote-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | emote', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('emote', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
13
frontend-reactive/tests/unit/models/media-metadata-test.js
Normal file
13
frontend-reactive/tests/unit/models/media-metadata-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | media metadata', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('media-metadata', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
13
frontend-reactive/tests/unit/models/note-test.js
Normal file
13
frontend-reactive/tests/unit/models/note-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | note', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('note', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
13
frontend-reactive/tests/unit/models/reaction-test.js
Normal file
13
frontend-reactive/tests/unit/models/reaction-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | reaction', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('reaction', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
13
frontend-reactive/tests/unit/models/relation-test.js
Normal file
13
frontend-reactive/tests/unit/models/relation-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | relation', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('relation', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
13
frontend-reactive/tests/unit/models/role-test.js
Normal file
13
frontend-reactive/tests/unit/models/role-test.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { setupTest } from 'frontend-reactive/tests/helpers';
|
||||
import { module, test } from 'qunit';
|
||||
|
||||
module('Unit | Model | role', function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function (assert) {
|
||||
const store = this.owner.lookup('service:store');
|
||||
const model = store.createRecord('role', {});
|
||||
assert.ok(model, 'model exists');
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue