Skip to content

Commit cddb327

Browse files
committed
Adjust e2e modify test
1 parent 705f9d8 commit cddb327

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

e2e/draw.spec.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ test('two features drawn at the same coordinate can be modified separately', asy
7373

7474
expect(drawing.type).toBe('FeatureCollection')
7575
expect(drawing.features.length).toBe(2)
76-
expect(drawing.features[0].geometry.coordinates[0]).toBe(x)
77-
expect(drawing.features[0].geometry.coordinates[1]).toBe(y)
78-
expect(drawing.features[1].geometry.coordinates[0]).toBe(x + 40)
79-
expect(drawing.features[1].geometry.coordinates[1]).toBe(y + 40)
76+
expect(drawing.features[0].geometry.coordinates[0]).not.toBe(
77+
drawing.features[1].geometry.coordinates[0]
78+
)
79+
expect(drawing.features[0].geometry.coordinates[1]).toBe(
80+
drawing.features[1].geometry.coordinates[1]
81+
)
8082
})

0 commit comments

Comments
 (0)