diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/index.js b/assets/src/scripts/monitoring-location/components/hydrograph/index.js index df902106fe9f70b84aac93b36b5e8ba5268c95a3..39ce0ae621b688dce9bce1391716da529ee80c7d 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.js @@ -21,7 +21,7 @@ import {retrieveGroundwaterLevelData} from 'ml/store/groundwater-level-field-vis import {retrieveHydrographData} from 'ml/store/hydrograph-data'; import {retrieveHydrographParameters} from 'ml/store/hydrograph-parameters'; import {setSelectedParameterCode, setCompareDataVisibility, setSelectedTimeSpan, - setSelectedIVMethodID, clearChangedParameterFlag + setSelectedIVMethodID } from 'ml/store/hydrograph-state'; import {Actions as floodDataActions} from 'ml/store/flood-data'; @@ -96,7 +96,7 @@ export const attachToNode = function(store, // Fetch all data needed to render the hydrograph const fetchHydrographDataPromise = store.dispatch(retrieveHydrographData(siteno, agencyCd, - getInputsForRetrieval(store.getState()))); + getInputsForRetrieval(store.getState()), true)); let fetchDataPromises = [fetchHydrographDataPromise]; // if showing only graph make a call to retrieve all of the groundwater level data. Otherwise @@ -177,7 +177,6 @@ export const attachToNode = function(store, parameterName: getTitle }))); } - store.dispatch(clearChangedParameterFlag()); }) .catch(reason => { console.error(reason); diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js index 79520abab763d9ee561cce69d32bf53841203780..601a46ff6ab0987c79597eb275e421782bf80855 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/index.test.js @@ -119,9 +119,7 @@ describe('monitoring-location/components/hydrograph module', () => { groundwaterLevelData: { all: [] }, - hydrographState: { - parameterCodeChanged: true - }, + hydrographState: {}, hydrographParameters: {}, floodData: {}, ui: { @@ -147,15 +145,15 @@ describe('monitoring-location/components/hydrograph module', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - }); + loadCompare: false + }, + true + ); expect(store.getState().hydrographState).toEqual({ selectedParameterCode: '72019', selectedTimeSpan: 'P7D', showCompareIVData: false, - selectedIVMethodID: undefined, - parameterCodeChanged: true + selectedIVMethodID: undefined }); }); @@ -169,15 +167,15 @@ describe('monitoring-location/components/hydrograph module', () => { period: 'P45D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - }); + loadCompare: false + }, + true + ); expect(store.getState().hydrographState).toEqual({ selectedParameterCode: '72019', selectedTimeSpan: 'P45D', showCompareIVData: false, - selectedIVMethodID: undefined, - parameterCodeChanged: true + selectedIVMethodID: undefined }); }); @@ -192,9 +190,10 @@ describe('monitoring-location/components/hydrograph module', () => { period: null, startTime: '2020-02-01T00:00:00.000-06:00', endTime: '2020-02-15T23:59:59.999-06:00', - loadCompare: false, - loadStats: true - }); + loadCompare: false + }, + true + ); expect(store.getState().hydrographState).toEqual({ selectedParameterCode: '72019', selectedTimeSpan: { @@ -202,8 +201,7 @@ describe('monitoring-location/components/hydrograph module', () => { end: '2020-02-15' }, showCompareIVData: false, - selectedIVMethodID: undefined, - parameterCodeChanged: true + selectedIVMethodID: undefined }); }); @@ -217,15 +215,15 @@ describe('monitoring-location/components/hydrograph module', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: true, - loadStats: true - }); + loadCompare: true + }, + true + ); expect(store.getState().hydrographState).toEqual({ selectedParameterCode: '72019', selectedTimeSpan: 'P7D', showCompareIVData: true, - selectedIVMethodID: undefined, - parameterCodeChanged: true + selectedIVMethodID: undefined }); }); }); @@ -251,14 +249,14 @@ describe('monitoring-location/components/hydrograph module', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - }); + loadCompare: false + }, + true + ); expect(store.getState().hydrographState).toEqual({ selectedParameterCode: '72019', selectedTimeSpan: 'P7D', - showCompareIVData: false, - parameterCodeChanged: true + showCompareIVData: false }); expect(retrieveFloodLevelsSpy).toHaveBeenCalled(); expect(retrieveHydrographParametersSpy).not.toHaveBeenCalled(); @@ -280,8 +278,7 @@ describe('monitoring-location/components/hydrograph module', () => { hydrographState: { selectedIVMethodID: '90649', selectedParameterCode: null, - showMedianData: true, - parameterCodeChanged: true + showMedianData: true }, hydrographParameters: TEST_HYDROGRAPH_PARAMETERS, floodData: {}, @@ -405,8 +402,7 @@ describe('monitoring-location/components/hydrograph module', () => { hydrographState: { selectedIVMethodID: '90649', showMedianData: true, - selectedParameterCode: null, - parameterCodeChanged: true + selectedParameterCode: null }, hydrographParameters: TEST_HYDROGRAPH_PARAMETERS, floodData: {}, diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/parameters.js b/assets/src/scripts/monitoring-location/components/hydrograph/parameters.js index d27519070d8904dea661bdee238f4522188494c0..02033bacc078e186bf83e278f497c3e35f9d98bc 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/parameters.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/parameters.js @@ -5,7 +5,7 @@ import {link} from 'ui/lib/d3-redux'; import {getInputsForRetrieval, getSelectedParameterCode} from 'ml/selectors/hydrograph-state-selector'; -import {setSelectedParameterCode, setSelectedIVMethodID, clearChangedParameterFlag} from 'ml/store/hydrograph-state'; +import {setSelectedParameterCode, setSelectedIVMethodID} from 'ml/store/hydrograph-state'; import {retrieveHydrographData} from 'ml/store/hydrograph-data'; import {getAvailableParameters} from './selectors/parameter-data'; @@ -152,14 +152,13 @@ const drawContainingRow = function(container, store, siteno, agencyCode, paramet if (!thisClass || !thisClass.includes('selected')) { store.dispatch(setSelectedParameterCode(parameterCode)); showDataIndicators(true, store); - store.dispatch(retrieveHydrographData(siteno, agencyCode, getInputsForRetrieval(store.getState()))) + store.dispatch(retrieveHydrographData(siteno, agencyCode, getInputsForRetrieval(store.getState()), true)) .then(() => { const sortedMethods = getSortedIVMethods(store.getState()); if (sortedMethods && sortedMethods.methods.length) { store.dispatch(setSelectedIVMethodID(sortedMethods.methods[0].methodID)); } showDataIndicators(false, store); - store.dispatch(clearChangedParameterFlag()); }); } }); diff --git a/assets/src/scripts/monitoring-location/components/hydrograph/parameters.test.js b/assets/src/scripts/monitoring-location/components/hydrograph/parameters.test.js index 83f64474f7ab5d0997fa9bc741483cf9011c6588..2722aa88d4e644504329a8c699123c616f783aa2 100644 --- a/assets/src/scripts/monitoring-location/components/hydrograph/parameters.test.js +++ b/assets/src/scripts/monitoring-location/components/hydrograph/parameters.test.js @@ -7,7 +7,6 @@ import * as utils from 'ui/utils'; import {configureStore} from 'ml/store'; import * as hydrographData from 'ml/store/hydrograph-data'; -import * as hydrographState from 'ml/store/hydrograph-state'; import * as dataIndicator from './data-indicator'; import {TEST_HYDROGRAPH_PARAMETERS} from './mock-hydrograph-state'; @@ -20,8 +19,7 @@ describe('monitoring-location/components/hydrograph/parameters module', () => { hydrographParameters: TEST_HYDROGRAPH_PARAMETERS, hydrographState: { selectedTimeSpan: 'P7D', - selectedParameterCode: '72019', - parameterCodeChanged: true + selectedParameterCode: '72019' } }; @@ -55,7 +53,6 @@ describe('monitoring-location/components/hydrograph/parameters module', () => { let store; let retrieveHydrographDataSpy; let showDataIndicatorSpy; - let clearChangedParameterFlagSpy; let restoreConsole; @@ -73,7 +70,6 @@ describe('monitoring-location/components/hydrograph/parameters module', () => { div = select('body').append('div'); retrieveHydrographDataSpy = jest.spyOn(hydrographData, 'retrieveHydrographData'); showDataIndicatorSpy = jest.spyOn(dataIndicator, 'showDataIndicators'); - clearChangedParameterFlagSpy = jest.spyOn(hydrographState, 'clearChangedParameterFlag'); }); afterEach(() => { @@ -99,7 +95,7 @@ describe('monitoring-location/components/hydrograph/parameters module', () => { expect(container.select('input:checked').attr('value')).toEqual('72019'); }); - it('Expects changing the selection retrieves hydrograph data', () => { + it('Expects changing the selection retrieves hydrograph data and statistics data', () => { store = configureStore(TEST_STATE); drawSelectionList(div, store, '11112222', 'USGS'); @@ -114,21 +110,10 @@ describe('monitoring-location/components/hydrograph/parameters module', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - }); - }); - - it('Expects changing the selection clears the changing parameter flag', async() => { - store = configureStore(TEST_STATE); - drawSelectionList(div, store, '11112222', 'USGS'); - - const rowOne = div.select('#container-row-00060'); - rowOne.dispatch('click'); - // eslint-disable-next-line no-undef - await new Promise((promise) => setTimeout(promise, 2000)); - - expect(clearChangedParameterFlagSpy).toHaveBeenCalled(); + loadCompare: false + }, + true // loadStats + ); }); it('Expects that the row for the selected parameter will be open when the page loads', function() { diff --git a/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.js b/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.js index 33c95183ae32485ce27a75d27b9542d822bd8379..ee41bb03ae4648e49b110919ad338e62f0fad10b 100644 --- a/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.js +++ b/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.js @@ -16,7 +16,6 @@ export const getSelectedParameterCode = state => state.hydrographState.selectedP export const getSelectedIVMethodID = state => state.hydrographState.selectedIVMethodID || null; export const getGraphCursorOffset = state => state.hydrographState.graphCursorOffset || null; export const getGraphBrushOffset = state => state.hydrographState.graphBrushOffset || null; -export const didParameterCodeChange = state => state.hydrographState.parameterCodeChanged; /* * Returns a selector function that returns an Object that can be used when calling @@ -29,8 +28,7 @@ export const getInputsForRetrieval = createSelector( getSelectedParameterCode, getSelectedTimeSpan, isCompareIVDataVisible, - didParameterCodeChange, - (parameterCode, selectedTimeSpan, loadCompare, loadStats) => { + (parameterCode, selectedTimeSpan, loadCompare) => { const timeSpanIsDuration = typeof selectedTimeSpan === 'string'; const period = timeSpanIsDuration && selectedTimeSpan.endsWith('D') ? selectedTimeSpan : null; let startTime = null; @@ -61,8 +59,7 @@ export const getInputsForRetrieval = createSelector( period, startTime, endTime, - loadCompare, - loadStats + loadCompare }; } ); diff --git a/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.test.js b/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.test.js index 7854707e89ecca2dd8e6b5ffd98422b938a535b5..84302231c384724838027472c9f93ad409aa075c 100644 --- a/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.test.js +++ b/assets/src/scripts/monitoring-location/selectors/hydrograph-state-selector.test.js @@ -1,8 +1,7 @@ import config from 'ui/config'; import {isCompareIVDataVisible, isMedianDataVisible, getSelectedTimeSpan, getSelectedParameterCode, - getSelectedIVMethodID, getGraphCursorOffset, getGraphBrushOffset, getInputsForRetrieval, - didParameterCodeChange + getSelectedIVMethodID, getGraphCursorOffset, getGraphBrushOffset, getInputsForRetrieval } from './hydrograph-state-selector'; describe('monitoring-location/selectors/hydrograph-state-selector', () => { @@ -125,24 +124,6 @@ describe('monitoring-location/selectors/hydrograph-state-selector', () => { }); }); - describe('didParameterCodeChange', () => { - it('Returns false if parameter code is not changing', () => { - expect(didParameterCodeChange({ - hydrographState: { - parameterCodeChanged: false - } - })).toBe(false); - }); - - it('Returns true if parameter code is changing', () => { - expect(didParameterCodeChange({ - hydrographState: { - parameterCodeChanged: true - } - })).toEqual(true); - }); - }); - describe('getInputsForRetrieval', () => { config.ivPeriodOfRecord = { '00010': { @@ -250,43 +231,5 @@ describe('monitoring-location/selectors/hydrograph-state-selector', () => { loadCompare: true }); }); - - it('Expects to return loadStats as true if the parameter code is changing', () => { - expect(getInputsForRetrieval({ - hydrographState: { - showCompareIVData: true, - showMedianData: false, - selectedTimeSpan: 'periodOfRecord', - selectedParameterCode: '00060', - parameterCodeChanged: true - } - })).toEqual({ - parameterCode: '00060', - period: null, - startTime: '2019-01-01T00:00:00.000-06:00', - endTime: '2021-10-01T05:00:00.000-05:00', - loadCompare: true, - loadStats: true - }); - }); - - it('Expects to return loadStats as false if the parameter code is not changing', () => { - expect(getInputsForRetrieval({ - hydrographState: { - showCompareIVData: true, - showMedianData: false, - selectedTimeSpan: 'periodOfRecord', - selectedParameterCode: '00060', - parameterCodeChanged: false - } - })).toEqual({ - parameterCode: '00060', - period: null, - startTime: '2019-01-01T00:00:00.000-06:00', - endTime: '2021-10-01T05:00:00.000-05:00', - loadCompare: true, - loadStats: false - }); - }); }); }); \ No newline at end of file diff --git a/assets/src/scripts/monitoring-location/store/hydrograph-data.js b/assets/src/scripts/monitoring-location/store/hydrograph-data.js index 1f065d75310a5d7c9683d2b27da3825ed5e94c21..32817a241aee5ec9eee803e153163f9a2d6a2dc0 100644 --- a/assets/src/scripts/monitoring-location/store/hydrograph-data.js +++ b/assets/src/scripts/monitoring-location/store/hydrograph-data.js @@ -325,7 +325,7 @@ export const retrieveHydrographThresholds = function(agencySiteNumberCode, param * @param {Boolean} loadStats * @return {Function} that returns a promise */ -export const retrieveHydrographData = function(siteno, agencyCode, {parameterCode, period, startTime, endTime, loadCompare, loadStats}) { +export const retrieveHydrographData = function(siteno, agencyCode, {parameterCode, period, startTime, endTime, loadCompare}, loadStats = false) { return function(dispatch) { const parameterToFetch = getParameterToFetch(parameterCode); const hasIVData = config.ivPeriodOfRecord && parameterToFetch in config.ivPeriodOfRecord; diff --git a/assets/src/scripts/monitoring-location/store/hydrograph-data.test.js b/assets/src/scripts/monitoring-location/store/hydrograph-data.test.js index 2eae0a1e374e8ed474612430480dcc628de5b993..b1b427db5fda45184b3012baf5c4b7e4e6f097a6 100644 --- a/assets/src/scripts/monitoring-location/store/hydrograph-data.test.js +++ b/assets/src/scripts/monitoring-location/store/hydrograph-data.test.js @@ -69,9 +69,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - })); + loadCompare: false + }, + true + )); const mockIVCalls = ivDataService.fetchTimeSeries.mock.calls; const mockStatsCalls = statisticsDataService.fetchSiteStatistics.mock.calls; @@ -96,9 +97,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: true, - loadStats: true - })); + loadCompare: true + }, + true + )); const mockIVCalls = ivDataService.fetchTimeSeries.mock.calls; const mockStatsCalls = statisticsDataService.fetchSiteStatistics.mock.calls; @@ -135,9 +137,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - })); + loadCompare: false + }, + true + )); const mockIVCalls = ivDataService.fetchTimeSeries.mock.calls; const mockStatsCalls = statisticsDataService.fetchSiteStatistics.mock.calls; @@ -166,9 +169,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: true, - loadStats: false - })); + loadCompare: true + }, + false + )); expect(ivDataService.fetchTimeSeries.mock.calls).toHaveLength(2); }); @@ -182,9 +186,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P10D', startTime: null, endTime: null, - loadCompare: true, - loadStats: false - })); + loadCompare: true + }, + false + )); expect(ivDataService.fetchTimeSeries.mock.calls).toHaveLength(1); }); @@ -198,9 +203,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: null, startTime: '2020-01-01', endTime: '2020-01-31', - loadCompare: true, - loadStats: false - })); + loadCompare: true + }, + false + )); expect(ivDataService.fetchTimeSeries.mock.calls).toHaveLength(1); }); @@ -226,9 +232,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - })).then(() => { + loadCompare: false + }, + true + )).then(() => { const hydrographData = store.getState().hydrographData; expect(hydrographData.currentTimeRange).toEqual({ @@ -260,9 +267,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: false - })).then(() => { + loadCompare: false + }, + false + )).then(() => { const hydrographData = store.getState().hydrographData; expect(hydrographData.primaryIVData.values['158049'].points[669]).toEqual({ @@ -289,9 +297,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: false - })).then(() => { + loadCompare: false + }, + false + )).then(() => { const hydrographData = store.getState().hydrographData; expect(hydrographData.primaryIVData.values['158049'].points[667]).toEqual({ @@ -320,9 +329,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: false - })); + loadCompare: false + }, + false + )); const mockIVCalls = ivDataService.fetchTimeSeries.mock.calls; expect(mockIVCalls).toHaveLength(1); @@ -341,9 +351,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: false - })).then(() => { + loadCompare: false + }, + false + )).then(() => { const hydrographData = store.getState().hydrographData; expect(hydrographData.primaryIVData.parameter).toEqual({ @@ -375,9 +386,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: false - })); + loadCompare: false + }, + false + )); }); it('Expects a call to retrievePriorYearIVData sets the prioryearTimeRange and fetches the data', () => { @@ -443,9 +455,10 @@ describe('monitoring-location/store/hydrograph-data', () => { period: 'P7D', startTime: null, endTime: null, - loadCompare: false, - loadStats: true - })); + loadCompare: false + }, + true + )); }); it('Expects statistics data to fetched and stored', () => { diff --git a/assets/src/scripts/monitoring-location/store/hydrograph-state.js b/assets/src/scripts/monitoring-location/store/hydrograph-state.js index 7eb05c90fa21feb212a5d81ab4502b93aa6ab5c6..bc5b09a5dcd4a1fc98d219b8b2c9241f7a454cd0 100644 --- a/assets/src/scripts/monitoring-location/store/hydrograph-state.js +++ b/assets/src/scripts/monitoring-location/store/hydrograph-state.js @@ -10,8 +10,7 @@ export const INITIAL_STATE = { selectedParameterCode: null, selectedIVMethodID: null, graphCursorOffset: null, - graphBrushOffset: null, - parameterCodeChanged: null + graphBrushOffset: null }; /* @@ -113,15 +112,6 @@ export const clearGraphBrushOffset = function() { }; }; -/* - * Synchronous action to clear the parameter changed flag - * return {Object} - Redux action - */ -export const clearChangedParameterFlag = function() { - return { - type: 'CLEAR_CHANGED_PARAMETER_FLAG' - }; -}; export const hydrographStateReducer = function(hydrographState = INITIAL_STATE, action) { let hasIVData; @@ -147,21 +137,18 @@ export const hydrographStateReducer = function(hydrographState = INITIAL_STATE, if (hasIVData && GW_SHORTCUT_DURATIONS.includes(hydrographState.selectedTimeSpan)) { return { ...hydrographState, - parameterCodeChanged: hydrographState.selectedParameterCode !== action.parameterCode, selectedTimeSpan: IV_SHORTCUT_DURATIONS[0], selectedParameterCode: action.parameterCode }; } else if (!hasIVData && hasGWData && IV_SHORTCUT_DURATIONS.includes(hydrographState.selectedTimeSpan)) { return { ...hydrographState, - parameterCodeChanged: hydrographState.selectedParameterCode !== action.parameterCode, selectedTimeSpan: GW_SHORTCUT_DURATIONS[0], selectedParameterCode: action.parameterCode }; } else { return { ...hydrographState, - parameterCodeChanged: hydrographState.selectedParameterCode !== action.parameterCode, selectedParameterCode: action.parameterCode }; } @@ -208,12 +195,6 @@ export const hydrographStateReducer = function(hydrographState = INITIAL_STATE, graphBrushOffset: null }; - case 'CLEAR_CHANGED_PARAMETER_FLAG': - return { - ...hydrographState, - parameterCodeChanged: false - }; - default: return hydrographState; } }; diff --git a/assets/src/scripts/monitoring-location/store/hydrograph-state.test.js b/assets/src/scripts/monitoring-location/store/hydrograph-state.test.js index 35a71a64577e88f2de392b665316418c15706bea..11d144fed230d95ef788458e978cb944f8f1cd8d 100644 --- a/assets/src/scripts/monitoring-location/store/hydrograph-state.test.js +++ b/assets/src/scripts/monitoring-location/store/hydrograph-state.test.js @@ -110,31 +110,6 @@ describe('monitoring-location/store/hydrograph-state', () => { expect(state.selectedTimeSpan).toBe('periodOfRecord'); }); - it('sets the changed parameter flag to true if the action parameter code is different from the state parameter code', () => { - store.dispatch(setSelectedParameterCode('00060')); - - const state = store.getState().hydrographState; - expect(state.parameterCodeChanged).toBe(true); - }); - - it('sets the changed parameter flag to false if the action parameter code is not different from the state parameter code', () => { - store = createStore( - combineReducers({ - hydrographState: hydrographStateReducer - }), - { - hydrographState: { - ...INITIAL_STATE, - selectedParameterCode: '00060' - } - }, - applyMiddleware(thunk) - ); - store.dispatch(setSelectedParameterCode('00060')); - - const state = store.getState().hydrographState; - expect(state.parameterCodeChanged).toBe(false); - }); }); describe('setSelectedIVMethodID', () => {