Skip to content

Commit

Permalink
remove junk tests (#14191)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck authored and chrisronline committed Oct 4, 2017
1 parent 51b6b51 commit f06c183
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/core_plugins/spy_modes/public/table_spy_mode.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'ui/agg_table';
// import 'ui/agg_table';
import { AggResponseTabifyProvider } from 'ui/agg_response/tabify/tabify';
import tableSpyModeTemplate from 'plugins/spy_modes/table_spy_mode.html';
import { SpyModesRegistryProvider } from 'ui/registry/spy_modes';
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -97,31 +97,5 @@ describe('editor', function () {
});
});

describe('interval "auto" and indexPattern timeField', function () {
let params;

beforeEach(function () {
params = render({ field: indexPattern.timeFieldName, interval: 'auto' });
});

it('clears the interval when the field is changed', function () {
expect(params.interval.modelValue().val).to.be('auto');
expect(params.field.modelValue().name).to.be(indexPattern.timeFieldName);

const field = _.find(indexPattern.fields, function (f) {
return f.type === 'date' && f.name !== indexPattern.timeFieldName;
});

params.field.$input()
.find('option')
.filter(function () {
return $(this).text().trim() === field.name;
})
.prop('selected', true);
params.field.$input().change();

expect(params.interval.modelValue()).to.be(undefined);
});
});

});
2 changes: 2 additions & 0 deletions src/ui/public/agg_types/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import './agg_params';
import './buckets/_histogram';
import './buckets/_geo_hash';
import './buckets/_range';
import './buckets/date_histogram/_editor';
import './buckets/date_histogram/_params';
import { AggTypesIndexProvider } from 'ui/agg_types/index';
import { AggTypesBucketsBucketAggTypeProvider } from 'ui/agg_types/buckets/_bucket_agg_type';
import { AggTypesMetricsMetricAggTypeProvider } from 'ui/agg_types/metrics/metric_agg_type';
Expand Down

0 comments on commit f06c183

Please sign in to comment.