From 10c43404754167b992be23e464d79811fd49a61c Mon Sep 17 00:00:00 2001 From: Joel McKinnon Date: Tue, 17 Dec 2019 13:24:34 -0800 Subject: [PATCH] completed tests for condition collection object --- ....js => ConditionCollectionViewProvider.js} | 14 +++++----- ...{Condition.vue => ConditionCollection.vue} | 4 +-- src/plugins/condition/plugin.js | 9 +++--- src/plugins/condition/pluginSpec.js | 28 +++++++++++-------- 4 files changed, 29 insertions(+), 26 deletions(-) rename src/plugins/condition/{ConditionViewProvider.js => ConditionCollectionViewProvider.js} (82%) rename src/plugins/condition/components/{Condition.vue => ConditionCollection.vue} (70%) diff --git a/src/plugins/condition/ConditionViewProvider.js b/src/plugins/condition/ConditionCollectionViewProvider.js similarity index 82% rename from src/plugins/condition/ConditionViewProvider.js rename to src/plugins/condition/ConditionCollectionViewProvider.js index 629e6b0c69..30ecddb80a 100644 --- a/src/plugins/condition/ConditionViewProvider.js +++ b/src/plugins/condition/ConditionCollectionViewProvider.js @@ -20,16 +20,16 @@ * at runtime from the About dialog for additional information. *****************************************************************************/ -import ConditionComponent from './components/Condition.vue'; +import ConditionCollectionComponent from './components/ConditionCollection.vue'; import Vue from 'vue'; -export default function Condition(openmct) { +export default function ConditionCollection(openmct) { return { - key: 'condition', - name: 'Condition', + key: 'conditionCollection', + name: 'Condition Collection', cssClass: 'icon-page', canView: function (domainObject) { - return domainObject.type === 'condition'; + return domainObject.type === 'conditionCollection'; }, view: function (domainObject) { let component; @@ -39,13 +39,13 @@ export default function Condition(openmct) { component = new Vue({ el: element, components: { - ConditionComponent: ConditionComponent + ConditionCollectionComponent }, provide: { openmct, domainObject }, - template: '' + template: '' }); }, destroy: function (element) { diff --git a/src/plugins/condition/components/Condition.vue b/src/plugins/condition/components/ConditionCollection.vue similarity index 70% rename from src/plugins/condition/components/Condition.vue rename to src/plugins/condition/components/ConditionCollection.vue index 19ec4a146b..7d81e2349f 100644 --- a/src/plugins/condition/components/Condition.vue +++ b/src/plugins/condition/components/ConditionCollection.vue @@ -1,7 +1,5 @@