From e273ffedbf7cb00da5c72cd5b9928a0de411bccd Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Tue, 24 Mar 2020 22:42:45 +0800 Subject: [PATCH] test: updaye move feature test --- packages/draw/__tests__/test.spec.ts | 0 packages/draw/__tests__/utils/move_featrues.spec.ts | 12 +++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 packages/draw/__tests__/test.spec.ts diff --git a/packages/draw/__tests__/test.spec.ts b/packages/draw/__tests__/test.spec.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/draw/__tests__/utils/move_featrues.spec.ts b/packages/draw/__tests__/utils/move_featrues.spec.ts index 316234211d..e53fdd0ced 100644 --- a/packages/draw/__tests__/utils/move_featrues.spec.ts +++ b/packages/draw/__tests__/utils/move_featrues.spec.ts @@ -48,11 +48,15 @@ describe('moveFeature', () => { }, }; it('move Point', () => { - const res = moveFeature([pointFeature], delta); + const res = moveFeature([pointFeature], delta) as Array< + Feature + >; expect(res[0].geometry.coordinates).toEqual([131, 48]); }); it('move BBox', () => { - const res = moveFeature([polyon], delta); + const res = moveFeature([polyon], delta) as Array< + Feature + >; expect(res[0].geometry.coordinates).toEqual([ [ [50.5703125, 46.583289756006316], @@ -64,7 +68,9 @@ describe('moveFeature', () => { ]); }); it('move line', () => { - const res = moveFeature([line], delta); + const res = moveFeature([line], delta) as Array< + Feature + >; expect(res[0].geometry.coordinates).toEqual([ [55.31640625, 63.91523303947614], [72.015625, 63.59334083012024],