Kunstmaan / Kunstmaan/angular-super-seed
Tests failing when using google-maps directive
- Dominant language
- JavaScript
- Stars
- 43
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm using Angular Google Maps (http://angular-google-maps.org/) in an experimental project, but when karma tests oftentimes fail with this error:
```
PhantomJS 1.9.7 (Mac OS X) ERROR
ReferenceError: Can't find variable: google
at /Users/netsensei/Workspace/myproject/app/bower_vendor/angular-google-maps/dist/angular-google-maps.js:3585
```
I've added this in the of the index.html file:
```
```
and this in the build:js directive:
```
```
I tried wiping the .tmp folder to force rebuilding the app: one moment it works, but when I reload grunt, the error returns.
Any ideas?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the Karma tests and inspect index.html, the build:js directive, and the angular-google-maps script loading order. Check why PhantomJS sometimes reaches angular-google-maps.js before the global google object exists; done means the tests run consistently without the ReferenceError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs, javascript
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100