diff --git a/source/frontend/src/utils/mapPropertyUtils.test.tsx b/source/frontend/src/utils/mapPropertyUtils.test.tsx index 60c6d74394..915e0b0e5c 100644 --- a/source/frontend/src/utils/mapPropertyUtils.test.tsx +++ b/source/frontend/src/utils/mapPropertyUtils.test.tsx @@ -67,7 +67,7 @@ describe('mapPropertyUtils', () => { ], [{ planNumber: undefined }, { label: NameSourceType.NONE, value: '' }], [{ planNumber: '' }, { label: NameSourceType.NONE, value: '' }], - [{ planNumber: '1' }, { label: NameSourceType.PLAN, value: '' }], + [{ planNumber: '1' }, { label: NameSourceType.PLAN, value: '1' }], [ { planNumber: 'PB1000', latitude: 1, longitude: 1, address: '1234 fake st' }, { label: NameSourceType.PLAN, value: 'PB1000' }, @@ -79,11 +79,11 @@ describe('mapPropertyUtils', () => { [{ planNumber: '' }, { label: NameSourceType.NONE, value: '' }], [ { latitude: 1, longitude: 2, address: '1234 fake st' }, - { label: NameSourceType.LOCATION, value: '1.000000,2.000000' }, + { label: NameSourceType.LOCATION, value: '2.000000, 1.000000' }, ], [{ address: undefined }, { label: NameSourceType.NONE, value: '' }], [{ address: '' }, { label: NameSourceType.NONE, value: '' }], - [{ address: '1234 fake st' }, { label: NameSourceType.ADDRESS, value: '' }], + [{ address: '1234 fake st' }, { label: NameSourceType.ADDRESS, value: '1234 fake st' }], ])( 'getPropertyName test with source %p expecting %p', (mapProperty: IMapProperty, expectedName: PropertyName) => { @@ -95,7 +95,7 @@ describe('mapPropertyUtils', () => { it('getPrettyLatLng, empty', () => { const prettyLatLng = getPrettyLatLng(undefined); - expect(prettyLatLng).toEqual('0, 0'); + expect(prettyLatLng).toEqual(''); }); it('getPrettyLatLng, valued', () => { @@ -110,7 +110,7 @@ describe('mapPropertyUtils', () => { it('getLatLng, valued', () => { const latLng = getLatLng({ coordinate: { x: 1, y: 2 } }); - expect(latLng).toEqual({ lat: 1, lng: 2 }); + expect(latLng).toEqual({ lat: 2, lng: 1 }); }); it.each([