Commit 8191c57d authored by Kevin Di Lallo's avatar Kevin Di Lallo
Browse files

lint & cypress fixes

parent b2ef37a2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ import {
} from '../../util/elem-utils';

import { pipe, filter } from '../../util/functional';
import { style } from 'd3';

const firstElementIfPresent = val =>
  Array.isArray(val) ? (val.length ? val[0] : null) : val;
+3 −3
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ const TYPE_UE = 'UE';
const TYPE_POA = 'POA';
const TYPE_COMPUTE = 'COMPUTE';

const UE_ICON = 'ion-iphone';
// const UE_ICON = 'ion-iphone';
const UE_COLOR_DEFAULT = '#00ccff';
const UE_PATH_COLOR = '#008fb3';
const UE_OPACITY = 1.0;
@@ -83,14 +83,14 @@ const UE_PATH_OPACITY = 0.5;
const UE_PATH_OPACITY_BACKGROUND = 0.3;

// POA icons: 'ion-connection-bars', 'ion-wifi'
const POA_ICON = 'ion-connection-bars';
// const POA_ICON = 'ion-connection-bars';
const POA_COLOR_DEFAULT = 'purple';
const POA_OPACITY = 1.0;
const POA_OPACITY_BACKGROUND = 0.35;
const POA_RANGE_OPACITY = 0.05;
const POA_RANGE_OPACITY_BACKGROUND = 0.05;

const COMPUTE_ICON = 'ion-android-cloud';
// const COMPUTE_ICON = 'ion-android-cloud';
const COMPUTE_COLOR_DEFAULT = 'green';
const COMPUTE_OPACITY = 1.0;
const COMPUTE_OPACITY_BACKGROUND = 0.35;
+1 −1
Original line number Diff line number Diff line
@@ -578,7 +578,7 @@ class MeepContainer extends Component {
    this.setBasepath(null);

    // Delete the active scenario
    this.deleteScenario(TYPE_EXEC);
    this.execDeleteScenario(TYPE_EXEC);
    this.props.execChangeScenarioState(EXEC_STATE_IDLE);
    this.props.execChangeOkToTerminate(false);
  }
+1 −5
Original line number Diff line number Diff line
@@ -318,11 +318,7 @@ describe('Scenario Configuration', function () {
  // Retrieve Element entry from Application table
  function getEntry(entries, name) {
    if (entries) {
      for (var i = 0; i < entries.length; i++) {
        if (getElemFieldVal(entries[i], FIELD_NAME) == name) {
          return entries[i];
        }
      }
      return entries[name] ? entries[name] : null;
    }
    return null;
  }
+1 −5
Original line number Diff line number Diff line
@@ -388,11 +388,7 @@ describe('Scenario Execution', function () {
  // Retrieve Element entry from Application table
  function getEntry(entries, name) {
    if (entries) {
      for (var i = 0; i < entries.length; i++) {
        if (getElemFieldVal(entries[i], FIELD_NAME) == name) {
          return entries[i];
        }
      }
      return entries[name] ? entries[name] : null;
    }
    return null;
  }
Loading