Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanSherwin committed Mar 26, 2024
1 parent 380388e commit 969a699
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import { h3Distance } from '../src/h3/h3_kring_distances/h3core_custom';

export default {
h3Distance
};
};
8 changes: 4 additions & 4 deletions clouds/snowflake/libraries/javascript/libs/h3_polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { bboxClip, polygon, intersect, geometryCollection } from '@turf/turf';
export default {
bboxClip,
polyfill,
polygon,
intersect,
geometryCollection
};
polygon,
intersect,
geometryCollection
};
2 changes: 1 addition & 1 deletion clouds/snowflake/libraries/javascript/test/h3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ test('h3 library defined', () => {
expect(h3PolyfillLib.polyfill).toBeDefined();
expect(kringDistancesLib.h3Distance).toBeDefined();
expect(uncompactLib.uncompact).toBeDefined();
});
});
2 changes: 1 addition & 1 deletion clouds/snowflake/modules/test/h3/H3_BOUNDARY.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ test('Returns the expected geography', async () => {
expect(rows[2].EXPECTED).toEqual(rows[2].BOUNDS);
expect(rows[3].EXPECTED).toEqual(rows[3].BOUNDS);
expect(rows[4].EXPECTED).toEqual(rows[4].BOUNDS);
});
});
2 changes: 1 addition & 1 deletion clouds/snowflake/modules/test/h3/H3_CENTER.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ test('Returns NULL the expected geography', async () => {

const rows = await runQuery(query);
expect(rows.length).toEqual(0);
});
});
2 changes: 1 addition & 1 deletion clouds/snowflake/modules/test/h3/H3_FROMLONGLAT.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ test('H3_FROMLONGLAT returns the proper INT64', async () => {
'85283473fffffff',
'85283473fffffff'
]);
});
});
2 changes: 1 addition & 1 deletion clouds/snowflake/modules/test/h3/H3_KRING.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ test('H3_KRING should fail if any invalid argument', async () => {

query = 'SELECT H3_KRING(\'8928308280fffff\', -1)';
await expect(runQuery(query)).rejects.toThrow(/Invalid input size/);
});
});
4 changes: 2 additions & 2 deletions clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('H3_POLYFILL returns the proper INT64s', async () => {
`;

const rows = await runQuery(query);
// expect(rows.length).toEqual(18);
expect(rows.length).toEqual(18);
expect(rows.map((r) => r.ID_COUNT)).toEqual([
1253,
18,
Expand Down Expand Up @@ -160,4 +160,4 @@ test('H3_POLYFILL returns the expected values', async () => {
`;
rows = await runQuery(query);
expect(rows.length).toEqual(0);
});
});
2 changes: 1 addition & 1 deletion clouds/snowflake/modules/test/h3/H3_RESOLUTION.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ test('Returns the expected resolution', async () => {

const rows = await runQuery(query);
expect(rows.length).toEqual(0);
});
});
2 changes: 1 addition & 1 deletion clouds/snowflake/modules/test/h3/H3_TOCHILDREN.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ test('Coarser resolution returns empty array', async () => {
const rows = await runQuery(query);
expect(rows.length).toEqual(1);
expect(rows[0].TOP_CHILDREN).toEqual([ ]);
});
});

0 comments on commit 969a699

Please sign in to comment.