Skip to content

Commit

Permalink
Adjust e2e modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
dopenguin committed Nov 14, 2024
1 parent 705f9d8 commit cddb327
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e/draw.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ test('two features drawn at the same coordinate can be modified separately', asy

expect(drawing.type).toBe('FeatureCollection')
expect(drawing.features.length).toBe(2)
expect(drawing.features[0].geometry.coordinates[0]).toBe(x)
expect(drawing.features[0].geometry.coordinates[1]).toBe(y)
expect(drawing.features[1].geometry.coordinates[0]).toBe(x + 40)
expect(drawing.features[1].geometry.coordinates[1]).toBe(y + 40)
expect(drawing.features[0].geometry.coordinates[0]).not.toBe(
drawing.features[1].geometry.coordinates[0]
)
expect(drawing.features[0].geometry.coordinates[1]).toBe(
drawing.features[1].geometry.coordinates[1]
)
})

0 comments on commit cddb327

Please sign in to comment.