Use compositeType properly on tests

This commit is contained in:
Carlos Alcaide Corvo committed 2022-01-14 13:28:13 -08:00
1 parent 8007762bd1
commit df673ad29b
1 file changed
+2 -5
@@ -79,14 +79,11 @@ module('Unit | Model | host catalog', function (hooks) {
assert.expect(3);
const store = this.owner.lookup('service:store');
const modelPlugin = store.createRecord('host-catalog', {
type: 'plugin',
plugin: { name: 'Test name' },
compositeType: 'aws'
});
const modelStatic = store.createRecord('host-catalog', {
type: 'static',
compositeType: 'static',
});
modelPlugin.set('compositeType', 'aws');
modelStatic.set('compositeType', 'static');
assert.equal(modelPlugin.type, 'plugin');
assert.equal(modelPlugin.plugin.name, 'aws');