Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 43204c8

Browse files
committed
most specs working
1 parent 2885237 commit 43204c8

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

karma.conf.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = (config) ->
2424

2525
# list of files / patterns to load in the browser
2626
files: [
27+
'node_modules/phantomjs-polyfill/bind-polyfill.js'
2728
'bower_components/lodash/lodash.js'
2829
'bower_components/angular/angular.js'
2930
'bower_components/angular-mocks/angular-mocks.js'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"karma-mocha-reporter": "1.X",
6969
"karma-phantomjs-launcher": "0.2.X",
7070
"mocha": "2.X",
71+
"phantomjs-polyfill": "0.0.1",
7172
"require-directory": "2.1.1",
7273
"webpack": "^1.9.10",
7374
"yargs": "3.32.0"

spec/coffee/bootstrap/bootstrap.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ beforeEach ->
4343

4444
fn() if fn? and _.isFunction fn
4545
while @timeout.hasPendingTasks()
46-
@timeout.flush()
46+
@timeout.flush()
4747
@rootScope.$digest()
4848

4949
afterEach ->
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
do ->
2-
module = angular.module("angular-google-maps-specs", ['uiGmapgoogle-maps'])
3-
.controller('GoogleMapSpecController', ($scope, $timeout, $log) ->
4-
self = @
5-
@hasRun = false
6-
@map = {}
7-
google.maps.visualRefresh = true
8-
angular.extend($scope,
9-
showTraffic: true,
10-
center:
11-
latitude: 45
12-
longitude: -73
13-
zoom: 3,
14-
events: #direct hook to google maps sdk events
15-
tilesloaded: (map, eventName, originalEventArgs) ->
16-
if !self.hasRun
17-
self.map = map
18-
document.gMap = map
19-
self.hasRun = true
20-
)
21-
)
2+
module = angular.module("angular-google-maps-specs", ['uiGmapgoogle-maps'])
3+
.controller 'GoogleMapSpecController', ($scope, $timeout, $log) ->
4+
self = @
5+
@hasRun = false
6+
@map = {}
7+
google.maps.visualRefresh = true
8+
angular.extend $scope,
9+
showTraffic: true,
10+
center:
11+
latitude: 45
12+
longitude: -73
13+
zoom: 3,
14+
events: #direct hook to google maps sdk events
15+
tilesloaded: (map, eventName, originalEventArgs) ->
16+
if !self.hasRun
17+
self.map = map
18+
document.gMap = map
19+
self.hasRun = true

0 commit comments

Comments
 (0)