mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 01:11:41 +00:00
renaming
This commit is contained in:
parent
ad64f00608
commit
6a25cb0a58
@ -23,6 +23,7 @@
|
|||||||
export default function ConditionSetPlugin() {
|
export default function ConditionSetPlugin() {
|
||||||
const conditionSetType = {
|
const conditionSetType = {
|
||||||
name: 'Condition Set',
|
name: 'Condition Set',
|
||||||
|
key: 'conditionSet',
|
||||||
description: 'A set of one or more conditional rules based on user-specified criteria.',
|
description: 'A set of one or more conditional rules based on user-specified criteria.',
|
||||||
creatable: true,
|
creatable: true,
|
||||||
cssClass: 'icon-summary-widget',
|
cssClass: 'icon-summary-widget',
|
||||||
|
@ -20,33 +20,33 @@
|
|||||||
* at runtime from the About dialog for additional information.
|
* at runtime from the About dialog for additional information.
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
import ConditionPlugin from './plugin';
|
import ConditionSetPlugin from './plugin';
|
||||||
import { createOpenMct } from 'testTools';
|
import { createOpenMct } from 'testTools';
|
||||||
|
|
||||||
fdescribe("The plugin", () => {
|
fdescribe("The plugin", () => {
|
||||||
let openmct;
|
let openmct;
|
||||||
let conditionType;
|
let conditionSetType;
|
||||||
let mockDomainObject;
|
let mockDomainObject;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
mockDomainObject = {};
|
mockDomainObject = {};
|
||||||
|
|
||||||
openmct = createOpenMct();
|
openmct = createOpenMct();
|
||||||
openmct.install(new ConditionPlugin());
|
openmct.install(new ConditionSetPlugin());
|
||||||
conditionType = openmct.types.get('condition');
|
conditionSetType = openmct.types.get('conditionSet');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('defines a condition object with the correct name', () => {
|
it('defines a conditionSet object with the correct key', () => {
|
||||||
expect(conditionType.definition.name).toEqual('Condition');
|
expect(conditionSetType.definition.key).toEqual('conditionSet');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('defines a condition object that is creatable', () => {
|
it('defines a conditionSet object that is creatable', () => {
|
||||||
expect(conditionType.definition.creatable).toBeTrue();
|
expect(conditionSetType.definition.creatable).toBeTrue();
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("shows the condition object is initialized with", () => {
|
describe("shows the conditionSet object is initialized with", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
conditionType.definition.initialize(mockDomainObject);
|
conditionSetType.definition.initialize(mockDomainObject);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('a composition array', () => {
|
it('a composition array', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user