mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
Merge branch 'condition-ui' of https://github.com/nasa/openmct into set-criteria-options
This commit is contained in:
commit
6f6fb859d6
@ -65,7 +65,7 @@ describe("The condition", function () {
|
|||||||
|
|
||||||
testConditionDefinition = {
|
testConditionDefinition = {
|
||||||
definition: {
|
definition: {
|
||||||
trigger: 'any',
|
trigger: TRIGGER.ANY,
|
||||||
criteria: [
|
criteria: [
|
||||||
{
|
{
|
||||||
operation: 'equalTo',
|
operation: 'equalTo',
|
||||||
@ -103,7 +103,6 @@ describe("The condition", function () {
|
|||||||
it("initializes with criteria from the condition definition", function () {
|
it("initializes with criteria from the condition definition", function () {
|
||||||
expect(conditionObj.criteria.length).toEqual(1);
|
expect(conditionObj.criteria.length).toEqual(1);
|
||||||
let criterion = conditionObj.criteria[0];
|
let criterion = conditionObj.criteria[0];
|
||||||
console.log(criterion);
|
|
||||||
expect(criterion instanceof TelemetryCriterion).toBeTrue();
|
expect(criterion instanceof TelemetryCriterion).toBeTrue();
|
||||||
expect(criterion.operator).toEqual(testConditionDefinition.definition.criteria[0].operator);
|
expect(criterion.operator).toEqual(testConditionDefinition.definition.criteria[0].operator);
|
||||||
expect(criterion.input).toEqual(testConditionDefinition.definition.criteria[0].input);
|
expect(criterion.input).toEqual(testConditionDefinition.definition.criteria[0].input);
|
||||||
|
Loading…
Reference in New Issue
Block a user