feat: 🎸 create Host Modal for connecting to specific modal (#1898)

✅ Closes: ICU-10432
This commit is contained in:
Cameron Perera authored and Zhihe Li committed 2023-09-22 18:58:14 -04:00
1 parent 02ce3341bd
commit c5cffd5137
9 files changed
+285 -3

No files matched your search

+22
View File
@@ -48,6 +48,28 @@ module('Unit | Model | host', function (hooks) {
assert.false(modelStatic.isPlugin);
});
test('it has isUnknown and returns the expected values', async function (assert) {
assert.expect(4);
const store = this.owner.lookup('service:store');
const modelAws = store.createRecord('host', {
type: 'plugin',
plugin: { name: 'aws' },
});
const modelAzure = store.createRecord('host', {
type: 'plugin',
plugin: { name: 'azure' },
});
const modelRandom = store.createRecord('host', {
type: 'plugin',
plugin: { name: 'random' },
});
assert.strictEqual(typeof modelRandom.isUnknown, 'boolean');
assert.true(modelRandom.isUnknown);
assert.false(modelAws.isUnknown);
assert.false(modelAzure.isUnknown);
});
test('it has isAWS and returns the expected values', async function (assert) {
assert.expect(3);
const store = this.owner.lookup('service:store');