Skip to content

Commit

Permalink
Improve test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfdsilva committed Nov 9, 2023
1 parent d0997fc commit 268e089
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/scripts/utils/antimeridian.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Feature, MultiPolygon, Polygon } from 'geojson';
import { fixAntimeridian } from './antimeridian';

describe('Antimeridian', () => {
it('Feature in 1st earth east', () => {
it('Should move a feature in the first map east (180/540) to the -180/180 range', () => {
const feature: Feature<Polygon> = {
type: 'Feature',
properties: {},
Expand Down Expand Up @@ -43,7 +43,7 @@ describe('Antimeridian', () => {
expect(result).toEqual(expected);
});

it('Feature crossing 540 antimeridian earth east', () => {
it('Should split a feature crossing the 540 antimeridian into 2 that fall within the -180/180 range', () => {
const feature: Feature<Polygon> = {
type: 'Feature',
properties: {},
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('Antimeridian', () => {
expect(result).toEqual(expected);
});

it('Feature spanning several maps', () => {
it('Should calculate the resulting feature in the -180/180 range when the input spans several maps', () => {
const feature: Feature<Polygon> = {
type: 'Feature',
properties: {},
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('Antimeridian', () => {
expect(result).toEqual(expected);
});

it('Multiple features', () => {
it('Should be able to process multipolygons, correctly resolving each polygon to the -180/180 range', () => {
const feature: Feature<MultiPolygon> = {
type: 'Feature',
properties: {},
Expand Down

0 comments on commit 268e089

Please sign in to comment.