Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Dec 13, 2024
1 parent ee57806 commit 1afc176
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/h3core.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,13 +949,21 @@ test('polygonToCellsExperimental - Single Loop Transmeridian', assert => {
});

test('polygonToCellsExperimental - Empty', assert => {
const hexagons = h3.polygonToCellsExperimental([], 9, h3.POLYGON_TO_CELLS_FLAGS.containmentCenter);
const hexagons = h3.polygonToCellsExperimental(
[],
9,
h3.POLYGON_TO_CELLS_FLAGS.containmentCenter
);
assert.equal(hexagons.length, 0, 'got no hexagons back');
assert.end();
});

test('polygonToCellsExperimental - Empty Loop', assert => {
const hexagons = h3.polygonToCellsExperimental([[]], 9, h3.POLYGON_TO_CELLS_FLAGS.containmentCenter);
const hexagons = h3.polygonToCellsExperimental(
[[]],
9,
h3.POLYGON_TO_CELLS_FLAGS.containmentCenter
);
assert.equal(hexagons.length, 0, 'got no hexagons back');
assert.end();
});
Expand Down

0 comments on commit 1afc176

Please sign in to comment.