Test updating fill to non-null-string non-number value in client DE

pull/1885/head
Jared Scheib 2017-09-07 12:47:25 -07:00
parent 8e5bed7a10
commit 2ab38d75e0
1 changed files with 12 additions and 1 deletions

View File

@ -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)
})
})
})