chore: 🤖 change fragment-host-set to fragment-host-source

This commit is contained in:
Randall Morey committed 2021-09-20 15:10:04 -04:00
1 parent 789d8d5f5a
commit 10da4af957
10 files changed
+14 -14

No files matched your search

@@ -1,12 +1,12 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Model | fragment host set', function (hooks) {
module('Unit | Model | fragment host source', function (hooks) {
setupTest(hooks);
test('it exists', function (assert) {
let store = this.owner.lookup('service:store');
let model = store.createRecord('fragment-host-set', {});
let model = store.createRecord('fragment-host-source', {});
assert.ok(model);
});
});
@@ -1,15 +1,15 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import FragmentHostSet from 'api/models/fragment-host-set';
import FragmentHostSource from 'api/models/fragment-host-source';
module('Unit | Serializer | fragment host set', function (hooks) {
module('Unit | Serializer | fragment host source', function (hooks) {
setupTest(hooks);
test('it normalizes `id` into `host_set_id`', function (assert) {
assert.expect(1);
const store = this.owner.lookup('service:store');
const serializer = store.serializerFor('fragment-host-set');
const normalized = serializer.normalize(FragmentHostSet, {
const serializer = store.serializerFor('fragment-host-source');
const normalized = serializer.normalize(FragmentHostSource, {
id: '2',
host_catalog_id: '1',
});
@@ -21,7 +21,7 @@ module('Unit | Serializer | fragment host set', function (hooks) {
},
id: null,
relationships: {},
type: 'fragment-host-set',
type: 'fragment-host-source',
},
});
});