update cell editor overlay test with table options

pull/10616/head
Iris Scholten 2018-03-12 15:31:46 -07:00
parent 6ec57840a9
commit 2ad3a85fdc
1 changed files with 11 additions and 1 deletions

View File

@ -30,11 +30,20 @@ const defaultCellAxes = {
},
}
const defaultCellTableOptions = {
timeFormat: 'MM/DD/YYYY HH:mm:ss.ss',
verticalTimeAxis: true,
sortBy: {displayName: '', internalName: ''},
wrapping: 'truncate',
columnNames: {internaName: 'time', displayName: ''},
}
const defaultCell = {
axes: defaultCellAxes,
colors: [],
name: defaultCellName,
type: defaultCellType,
tableOptions: defaultCellTableOptions,
}
const defaultSingleStatType = getSingleStatType(defaultCell.colors)
@ -52,9 +61,10 @@ describe('Dashboards.Reducers.cellEditorOverlay', () => {
gaugeColors: defaultGaugeColors,
singleStatColors: defaultSingleStatColors,
singleStatType: defaultSingleStatType,
tableOptions: defaultCellTableOptions,
}
expect(actual.cell).toBe(expected.cell)
expect(actual.cell).toEqual(expected.cell)
expect(actual.gaugeColors).toBe(expected.gaugeColors)
expect(actual.singleStatColors).toBe(expected.singleStatColors)
expect(actual.singleStatType).toBe(expected.singleStatType)