Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omninando committed Jun 28, 2019
1 parent c5825a9 commit 966cf98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
38 changes: 0 additions & 38 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion react/geolocation/GetAddressByGeolocation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Get Address by Geolocation', () => {

expect(mockFn).toHaveBeenCalledWith(
{
address: '321 Praia de Botafogo',
address: '321 Praia de Botafogo Rio de Janeiro RJ',
componentRestrictions: { country: 'EC' },
},
expect.any(Function),
Expand Down
2 changes: 1 addition & 1 deletion react/geolocation/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function getAddressByGeolocation(geolocationProps) {
componentRestrictions: {
country: rules.abbr,
},
address: `${address['number'].value} ${address['street'].value} ${address['city'].value} ${address['state'].value}`,
address: `${address['number'].value || ''} ${address['street'].value || ''} ${address['city'].value || ''} ${address['state'].value || ''}`,
},
(results, status) => {
if (status === googleMaps.GeocoderStatus.OK) {
Expand Down

0 comments on commit 966cf98

Please sign in to comment.