Skip to content

This is a mock for use when JS unit testing google maps

Notifications You must be signed in to change notification settings

juanmrad/google-maps-mock-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Google Maps Mock API

This is a mock for use when JS unit testing google maps

I created this mock based on frustration of not finding a more completely mocked google service out there. If you are getting the error "Uncaught ReferenceError: google is not defined" or similar when running your Karma tests because you are utilizing google maps to tap into Googles Map and Places Services, this should help.

! If you run into other errors where methods are undefined, add them as methods in the correct spot in the mock google object's tree.

About

This is a mock for use when JS unit testing google maps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%