mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[tests] update tests that depended on aggConfig#field()
This commit is contained in:
parent
1ee969c97a
commit
51cc35b605
2 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,12 @@ describe('collectBranch()', function () {
|
|||
depth: 3,
|
||||
size: 6,
|
||||
field: { format: { convert: convert } },
|
||||
aggConfig: { params: { field: { displayName: 'field3' } }, fieldFormatter: _.constant(String) },
|
||||
aggConfig: { getFieldDisplayName: _.constant('field3'), fieldFormatter: _.constant(String) },
|
||||
parent: {
|
||||
name: 'bucket2',
|
||||
depth: 2,
|
||||
size: 12,
|
||||
aggConfig: { label: 'field2', fieldFormatter: _.constant(String) },
|
||||
aggConfig: { fieldFormatter: _.constant(String), getFieldDisplayName: _.constant('field2') },
|
||||
parent: {
|
||||
name: 'bucket1',
|
||||
depth: 1,
|
||||
|
|
|
@ -54,12 +54,12 @@ describe('Table class', function () {
|
|||
});
|
||||
|
||||
describe('#field', function () {
|
||||
it('calls the columns aggConfig#field() method', function () {
|
||||
it('calls the columns aggConfig#getField() method', function () {
|
||||
let table = new Table();
|
||||
let football = {};
|
||||
let column = {
|
||||
aggConfig: {
|
||||
field: _.constant(football)
|
||||
getField: _.constant(football)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue