Skip to content

Commit 32693de

Browse files
committed
Fix unit test
1 parent e30e9ac commit 32693de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/googleApi.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ describe('googleApi', function() {
3030
});
3131

3232
it ('address', async function() {
33-
let ret = await GoogleApi.geocodeAddress('myKey', "london");
33+
let ret = await GoogleApi.geocodeAddress('myKey', 'london', 'en');
3434
expect(geocodeRequest).to.have.been.calledWith(
35-
'https://maps.google.com/maps/api/geocode/json?key=myKey&address=london');
35+
'https://maps.google.com/maps/api/geocode/json?key=myKey&address=london&language=en');
3636
expect(ret).to.eql('yo');
3737
});
3838
});

0 commit comments

Comments
 (0)