[tests] update tests that depended on aggConfig#field()

This commit is contained in:
spalger 2016-10-17 14:26:31 -07:00
parent 1ee969c97a
commit 51cc35b605
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

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