Skip to content

Commit

Permalink
style: lint js translator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davinov committed Aug 28, 2020
1 parent 3deb3c0 commit 0b663da
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions tests/unit/js.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('Pipeline to js function translator', () => {
operator: 'eq',
},
});
expect(filterALabel(SAMPLE_DATA, {})).toEqual([{label: 'A', value: 1}]);
expect(filterALabel(SAMPLE_DATA, {})).toEqual([{ label: 'A', value: 1 }]);
});

it('should handle and conditions with matches and gt', () => {
Expand All @@ -91,7 +91,7 @@ describe('Pipeline to js function translator', () => {
},
});
expect(filterValuesGreaterThan1AndLabelsWithOnlyOneLetter(SAMPLE_DATA, {})).toEqual([
{label: 'B', value: 2},
{ label: 'B', value: 2 },
]);
});

Expand All @@ -114,9 +114,9 @@ describe('Pipeline to js function translator', () => {
},
});
expect(filterLabelsWithMoreThanOneLetterOrValuesLessThan1(SAMPLE_DATA, {})).toEqual([
{label: 'A', value: 1},
{label: 'alpha', value: 0.1},
{label: 'beta', value: 0.2},
{ label: 'A', value: 1 },
{ label: 'alpha', value: 0.1 },
{ label: 'beta', value: 0.2 },
]);
});

Expand Down Expand Up @@ -171,9 +171,9 @@ describe('Pipeline to js function translator', () => {
},
});
expect(filterNotEqual(SAMPLE_DATA, {})).toEqual([
{label: 'B', value: 2},
{label: 'alpha', value: 0.1},
{label: 'beta', value: 0.2},
{ label: 'B', value: 2 },
{ label: 'alpha', value: 0.1 },
{ label: 'beta', value: 0.2 },
]);
});

Expand All @@ -182,7 +182,7 @@ describe('Pipeline to js function translator', () => {
name: 'filter',
condition: {
or: [
{column: 'value', operator: 'lt', value: 0.2},
{ column: 'value', operator: 'lt', value: 0.2 },
{
column: 'value',
operator: 'ge',
Expand All @@ -192,8 +192,8 @@ describe('Pipeline to js function translator', () => {
},
});
expect(filterLowerThan1OrGreatherThan1(SAMPLE_DATA, {})).toEqual([
{label: 'B', value: 2},
{label: 'alpha', value: 0.1},
{ label: 'B', value: 2 },
{ label: 'alpha', value: 0.1 },
]);
});

Expand All @@ -207,8 +207,8 @@ describe('Pipeline to js function translator', () => {
},
});
expect(filterIn(SAMPLE_DATA, {})).toEqual([
{label: 'A', value: 1},
{label: 'alpha', value: 0.1},
{ label: 'A', value: 1 },
{ label: 'alpha', value: 0.1 },
]);
});

Expand Down

0 comments on commit 0b663da

Please sign in to comment.