Skip to content

Commit fbf884a

Browse files
author
spalger
committed
[aggType/test] remove unnecessary change
1 parent 6157275 commit fbf884a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/public/agg_types/__tests__/agg_type.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ describe('AggType Class', function () {
8181

8282
describe('getFormat', function () {
8383
it('returns the formatter for the aggConfig', function () {
84+
let aggType = new AggType({});
85+
8486
let vis = new Vis(indexPattern, {
8587
type: 'histogram',
8688
aggs: [
@@ -92,7 +94,6 @@ describe('AggType Class', function () {
9294
});
9395

9496
let aggConfig = vis.aggs.byTypeName.date_histogram[0];
95-
const aggType = aggConfig.type;
9697

9798
expect(aggType.getFormat(aggConfig)).to.be(fieldFormat.getDefaultInstance('date'));
9899

0 commit comments

Comments
 (0)