Skip to content

Commit

Permalink
Change types in test
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Nov 20, 2020
1 parent c0a16e4 commit 26db7b8
Showing 1 changed file with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -660,30 +660,35 @@ describe('IndexPattern Data Source', () => {

it('should skip columns that are being referenced', () => {
publicAPI = indexPatternDatasource.getPublicAPI({
state: ({
state: {
...enrichBaseState(baseState),
layers: {
first: {
indexPatternId: '1',
columnOrder: ['col1', 'col2'],
columns: {
col1: {
dataType: 'number',
operationType: 'sum',
label: 'Sum',
dataType: 'number',
isBucketed: false,

operationType: 'sum',
sourceField: 'test',
},
params: {},
} as IndexPatternColumn,
col2: {
operationType: 'cumulative_sum',
label: 'Cumulative sum',
dataType: 'number',
isBucketed: false,
label: 'Cumulative sum',

operationType: 'cumulative_sum',
references: ['col1'],
},
params: {},
} as IndexPatternColumn,
},
},
},
} as unknown) as IndexPatternPrivateState,
},
layerId: 'first',
});

Expand Down

0 comments on commit 26db7b8

Please sign in to comment.