Skip to content

Commit

Permalink
waits for google to load, to pass karma tests
Browse files Browse the repository at this point in the history
flags to allow phantom to ignore ssl errors

checks if window.google is an object

checks if window.google is an object
  • Loading branch information
ffflabs committed Feb 26, 2018
1 parent 13a7cdd commit ac4679e
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 105 deletions.
47 changes: 28 additions & 19 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
module.exports = function (config) {
config.set({
basePath: '',
port: 9877,
colors: true,
logLevel: 'INFO',
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: true,
frameworks: ['jasmine'],
reporters: ['mocha'],
files: [
'https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry',
'wicket.js',
'wicket-gmap3.js',
'tests/wicket-gmap3-spec.js'
]
});
};
module.exports = function(config) {
config.set({
basePath: '',
port: 9877,
colors: true,
logLevel: 'INFO',
autoWatch: false,
browsers: ['PhantomJS'],
phantomjsLauncher: {
// Have phantomjs exit if a ResourceError is encountered (useful if karma exits without killing phantom)
exitOnResourceError: false,
flags: [
'--web-security=false',
'--load-images=false',
'--ignore-ssl-errors=true'
]
},
singleRun: true,
frameworks: ['jasmine'],
reporters: ['mocha'],
files: [
'https://maps.googleapis.com/maps/api/js?v=3.31&libraries=geometry',
'wicket.js',
'wicket-gmap3.js',
'tests/wicket-gmap3-spec.js'
]
});
};
Loading

0 comments on commit ac4679e

Please sign in to comment.