11import atlas from 'azure-maps-control'
22import { IAzureMapFeature } from '../../types'
3- import { useCreateAzureMapFeature } from './useCreateAzureMapFeature'
3+ import { createAzureMapFeature } from './useCreateAzureMapFeature'
44
55const fakeCoordinate : atlas . data . Position = new atlas . data . Position ( 10 , 10 )
66const fakeCoordinates : atlas . data . Position [ ] = [
@@ -20,13 +20,13 @@ const fakeBbox: atlas.data.BoundingBox = new atlas.data.BoundingBox(
2020)
2121
2222describe ( 'AzureMapFeature hooks' , ( ) => {
23- describe ( 'useCreateAzureMapFeature tests' , ( ) => {
23+ describe ( 'createAzureMapFeature tests' , ( ) => {
2424 it ( 'should return Point if type equal Point' , ( ) => {
2525 const pointProps : IAzureMapFeature = {
2626 type : 'Point' ,
2727 coordinate : fakeCoordinate
2828 }
29- const createPoint = useCreateAzureMapFeature ( pointProps )
29+ const createPoint = createAzureMapFeature ( pointProps )
3030 expect ( createPoint ) . toEqual ( { coords : [ 10 , 10 ] , type : 'Point' } )
3131 } )
3232 it ( 'should return MultiPoint if type equal MultiPoint' , ( ) => {
@@ -35,7 +35,7 @@ describe('AzureMapFeature hooks', () => {
3535 coordinates : fakeCoordinates ,
3636 bbox : fakeBbox
3737 }
38- const createMultiPoint = useCreateAzureMapFeature ( multiPointProps )
38+ const createMultiPoint = createAzureMapFeature ( multiPointProps )
3939 expect ( createMultiPoint ) . toEqual ( {
4040 bbox : [
4141 [ 10 , 10 ] ,
@@ -54,7 +54,7 @@ describe('AzureMapFeature hooks', () => {
5454 coordinates : fakeCoordinates ,
5555 bbox : fakeBbox
5656 }
57- const createLineString = useCreateAzureMapFeature ( lineStringProps )
57+ const createLineString = createAzureMapFeature ( lineStringProps )
5858 expect ( createLineString ) . toEqual ( {
5959 bbox : [
6060 [ 10 , 10 ] ,
@@ -73,7 +73,7 @@ describe('AzureMapFeature hooks', () => {
7373 multipleCoordinates : fakeMultipleCoordinates ,
7474 bbox : fakeBbox
7575 }
76- const createMultiLineStringProps = useCreateAzureMapFeature ( multiLineStringProps )
76+ const createMultiLineStringProps = createAzureMapFeature ( multiLineStringProps )
7777 expect ( createMultiLineStringProps ) . toEqual ( {
7878 bbox : [
7979 [ 10 , 10 ] ,
@@ -89,7 +89,7 @@ describe('AzureMapFeature hooks', () => {
8989 coordinates : fakeCoordinates ,
9090 bbox : fakeBbox
9191 }
92- const createLineString = useCreateAzureMapFeature ( lineStringProps )
92+ const createLineString = createAzureMapFeature ( lineStringProps )
9393 expect ( createLineString ) . toEqual ( {
9494 bbox : [
9595 [ 10 , 10 ] ,
@@ -108,7 +108,7 @@ describe('AzureMapFeature hooks', () => {
108108 multipleDimensionCoordinates : fakeMultipleDimensionCoordinates ,
109109 bbox : fakeBbox
110110 }
111- const createMultiPolygon = useCreateAzureMapFeature ( multiPolygonProps )
111+ const createMultiPolygon = createAzureMapFeature ( multiPolygonProps )
112112 expect ( createMultiPolygon ) . toEqual ( {
113113 bbox : [
114114 [ 10 , 10 ] ,
0 commit comments