HMS-FAC / BoatlaunchMVP

MVP for Boatlaunch App
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Front end testing - Qunit, google API #77

Closed tormod17 closed 8 years ago

tormod17 commented 8 years ago

Current reading for google API frontend

http://stackoverflow.com/questions/30963596/how-to-write-unit-test-on-code-that-is-using-google-maps-for-js/30985863#30985863

hdrdavies commented 8 years ago

Subissue of #24

hdrdavies commented 8 years ago

^ @tormod17 it links in if you comment it, but unfortunately not if it's just in the title

tormod17 commented 8 years ago

I've reached an impass with this and could do with a hand I've set-up passing tests for all of the html but can't work out how to test any of the functions in 'map.js' or 'utils.js' - I know that the file is being read-in as I can see it in the developer tools. However , even if i create a function not related to google maps and try to test it the function is undefined. Current tests should be opened in Safari or Mozilla to avoid 'cross browser origin' error.

hdrdavies commented 8 years ago

Now testing with Jasmine