Skip to content

Commit f251950

Browse files
committed
tslint
1 parent 413956e commit f251950

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/plugins/data/public/query/filter_manager/lib/mappers/map_spatial_filter.test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,11 @@ describe('mapSpatialFilter', () => {
4444

4545
describe('mapFilter', () => {
4646
test('should set key and value properties to undefined', async () => {
47-
const filter = {
48-
meta: {
49-
type: FILTERS.SPATIAL_FILTER,
50-
} as FilterMeta,
47+
const before = {
48+
meta: { type: FILTERS.SPATIAL_FILTER } as FilterMeta,
5149
query: {},
5250
} as Filter;
53-
const before: any = {
54-
meta: { type: FILTERS.SPATIAL_FILTER },
55-
query: {},
56-
};
57-
const after = mapFilter(before as Filter);
51+
const after = mapFilter(before);
5852

5953
expect(after).toHaveProperty('meta');
6054
expect(after.meta).toHaveProperty('key', undefined);

0 commit comments

Comments
 (0)