diff --git a/src/components/simulation-view/simulation-view.js b/src/components/simulation-view/simulation-view.js index d98e5631e7aeeda8bf9b9a4ed0015eef79f6f335..7158e458c716e0e03640fd2e9554996022324085 100644 --- a/src/components/simulation-view/simulation-view.js +++ b/src/components/simulation-view/simulation-view.js @@ -58,7 +58,6 @@ export default class SimulationView extends React.Component { console.info(simInfo); let experiments = await ExperimentStorageService.instance.getExperiments(); let experimentName = experiments.find(experiment => experiment.id === simInfo.experimentID).configuration.name; - console.info(experimentName); this.setState({simulationInfo: simInfo, experimentName: experimentName}); } diff --git a/src/services/experiments/execution/__tests__/experiment-execution-service.test.js b/src/services/experiments/execution/__tests__/experiment-execution-service.test.js index dbd8d11eb512ffe8701bf1a4cfd0a10d0b89c185..026d4bc6017dad92aca54141378047f640a85cc8 100644 --- a/src/services/experiments/execution/__tests__/experiment-execution-service.test.js +++ b/src/services/experiments/execution/__tests__/experiment-execution-service.test.js @@ -202,9 +202,9 @@ test('should be able to stop an experiment', async () => { await ExperimentExecutionService.instance.stopExperiment(simulation); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledTimes(2); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledWith( - expect.any(String), expect.any(String), { state: EXPERIMENT_STATE.INITIALIZED }); + expect.any(String), expect.any(String), EXPERIMENT_STATE.INITIALIZED); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledWith( - expect.any(String), expect.any(String), { state: EXPERIMENT_STATE.STOPPED }); + expect.any(String), expect.any(String), EXPERIMENT_STATE.STOPPED); expect(simulation.stopping).toBe(true); // stop a STARTED simulation @@ -213,7 +213,7 @@ test('should be able to stop an experiment', async () => { await ExperimentExecutionService.instance.stopExperiment(simulation); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledTimes(1); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledWith( - expect.any(String), expect.any(String), { state: EXPERIMENT_STATE.STOPPED }); + expect.any(String), expect.any(String), EXPERIMENT_STATE.STOPPED); // stop a PAUSED simulation RunningSimulationService.instance.updateState.mockClear(); @@ -221,7 +221,7 @@ test('should be able to stop an experiment', async () => { await ExperimentExecutionService.instance.stopExperiment(simulation); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledTimes(1); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledWith( - expect.any(String), expect.any(String), { state: EXPERIMENT_STATE.STOPPED }); + expect.any(String), expect.any(String), EXPERIMENT_STATE.STOPPED); // stop a HALTED simulation RunningSimulationService.instance.updateState.mockClear(); @@ -229,7 +229,7 @@ test('should be able to stop an experiment', async () => { await ExperimentExecutionService.instance.stopExperiment(simulation); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledTimes(1); expect(RunningSimulationService.instance.updateState).toHaveBeenCalledWith( - expect.any(String), expect.any(String), { state: EXPERIMENT_STATE.STOPPED }); + expect.any(String), expect.any(String), EXPERIMENT_STATE.STOPPED); // stop a simulation in an undefined state, error RunningSimulationService.instance.updateState.mockClear();