Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Sep 23, 2020
1 parent 90f26d4 commit cb02b8c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,5 @@ export const operationDefinitionMap: Record<
GenericOperationDefinition
> = internalOperationDefinitions.reduce(
(definitionMap, definition) => ({ ...definitionMap, [definition.type]: definition }),
// {} as Record<OperationType, typeof internalOperationDefinitions[number]>
{}
);
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,14 @@ describe('getOperationTypesForField', () => {
Array [
Object {
"operationMetaData": Object {
"dataType": "string",
"dataType": "date",
"isBucketed": true,
"scale": "interval",
},
"operations": Array [
Object {
"operationType": "filters",
"type": "none",
},
Object {
"field": "source",
"operationType": "terms",
"field": "timestamp",
"operationType": "date_histogram",
"type": "field",
},
],
Expand All @@ -258,12 +254,12 @@ describe('getOperationTypesForField', () => {
"operationMetaData": Object {
"dataType": "number",
"isBucketed": true,
"scale": "ordinal",
"scale": "interval",
},
"operations": Array [
Object {
"field": "bytes",
"operationType": "terms",
"operationType": "range",
"type": "field",
},
],
Expand All @@ -275,13 +271,31 @@ describe('getOperationTypesForField', () => {
"scale": "ordinal",
},
"operations": Array [
Object {
"operationType": "filters",
"type": "none",
},
Object {
"field": "source",
"operationType": "terms",
"type": "field",
},
],
},
Object {
"operationMetaData": Object {
"dataType": "number",
"isBucketed": true,
"scale": "ordinal",
},
"operations": Array [
Object {
"field": "bytes",
"operationType": "terms",
"type": "field",
},
],
},
Object {
"operationMetaData": Object {
"dataType": "number",
Expand Down

0 comments on commit cb02b8c

Please sign in to comment.