Skip to content

Commit 4503c19

Browse files
committed
Added automatic test to mapquest provider to test for API key
1 parent a8d3a0e commit 4503c19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/providers/MapquestProvider.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ describe("Mapquest Provider to Geocoded mapping tests", function() {
3636
geocoded = provider.mapToGeocoded(stubMapquestResult);
3737
});
3838

39+
it ("expects API Key to be set on initiation.", function() {
40+
var testProvider = new GeocoderJS.MapquestProvider({apiKey: '[stub-api-key]'});
41+
expect(testProvider.apiKey).toEqual('[stub-api-key]');
42+
});
43+
3944
it ("maps coordinates correctly", function() {
4045
var expectedCoordinates = [38.895115, -77.036372];
4146
expect(geocoded.getCoordinates()).toEqual(expectedCoordinates);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy