Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
fix(tests,developer): update karma config. convert last couple of Api…
Browse files Browse the repository at this point in the history
…Ctrl references.
  • Loading branch information
Splaktar committed Mar 11, 2017
1 parent 461935c commit 0501b12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/developer/developer.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

angular.module('gdgxHubApp').controller('DeveloperCtrl', DeveloperCtrl);

ApiCtrl.$inject = ['$scope', '$http'];
DeveloperCtrl.$inject = ['$scope', '$http'];

function DeveloperCtrl($scope, $http) {
$http.get('/api/v1/rest').success(function(data) {
Expand Down
6 changes: 6 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ module.exports = function(config) {
'app/scripts/hub.module.js',
'app/scripts/*.js',
'app/scripts/**/*.js',
'app/about/*.js',
'app/admin/*.js',
'app/chapters/*.js',
'app/dashboard/*.js',
'app/developer/*.js',
'app/events/*.js',
'test/spec/**/*.js'
],

Expand Down
2 changes: 1 addition & 1 deletion test/spec/developer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('Controller: ApiCtrl', function() {
beforeEach(inject(function(_$httpBackend_, $controller, $rootScope) {
$httpBackend = _$httpBackend_;
scope = $rootScope.$new();
apiCtrl = $controller('ApiCtrl', {
apiCtrl = $controller('DeveloperCtrl', {
$scope: scope
});

Expand Down

0 comments on commit 0501b12

Please sign in to comment.