-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sandoche Adittane
committed
Jul 19, 2016
1 parent
73706dd
commit a23aca8
Showing
5 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
Submodule src
updated
from 96417b to 54c3af
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
/** | ||
* @ngdoc service | ||
* @name happybotsApp.analyticsService | ||
* @description | ||
* # analyticsService | ||
* Service in the happybotsApp. | ||
*/ | ||
angular.module('happybotsApp') | ||
.service('analyticsService', function () { | ||
this.recordPageview = function(url) { | ||
ga('set', 'page', url); | ||
ga('send', 'pageview'); | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
describe('Service: analyticsService', function () { | ||
|
||
// load the service's module | ||
beforeEach(module('happybotsApp')); | ||
|
||
// instantiate service | ||
var analyticsService; | ||
beforeEach(inject(function (_analyticsService_) { | ||
analyticsService = _analyticsService_; | ||
})); | ||
|
||
it('should do something', function () { | ||
expect(!!analyticsService).toBe(true); | ||
}); | ||
|
||
}); |