Test updating fill to non-null-string non-number value in client DE
parent
8e5bed7a10
commit
2ab38d75e0
|
@ -15,7 +15,7 @@ import {
|
|||
editQueryStatus,
|
||||
} from 'src/data_explorer/actions/view'
|
||||
|
||||
import {NULL_STRING} from 'shared/constants/queryFillOptions'
|
||||
import {LINEAR, NULL_STRING} from 'shared/constants/queryFillOptions'
|
||||
|
||||
const fakeAddQueryAction = (panelID, queryID) => {
|
||||
return {
|
||||
|
@ -407,5 +407,16 @@ describe('Chronograf.Reducers.DataExplorer.queryConfigs', () => {
|
|||
|
||||
expect(nextState[queryId].fill).to.equal(NULL_STRING)
|
||||
})
|
||||
|
||||
it('updates fill to non-null-string non-number string value', () => {
|
||||
const initialState = {
|
||||
[queryId]: buildInitialState(queryId),
|
||||
}
|
||||
const action = fill(queryId, LINEAR)
|
||||
|
||||
const nextState = reducer(initialState, action)
|
||||
|
||||
expect(nextState[queryId].fill).to.equal(LINEAR)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue