-
-
Save alexrothenberg/e5b618cfcf6a1b3fa86d to your computer and use it in GitHub Desktop.
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
'use strict'; | |
describe('Offers : controller', function(){ | |
beforeEach(module('client')); | |
var $scope, | |
genericService; | |
beforeEach(inject(function($rootScope, _genericService_, $controller) { | |
$scope = $rootScope.$new(); | |
var createController = function() { | |
return $controller('OffersCtrl', { | |
$scope: $scope, | |
genericService : genericService | |
}); | |
}; | |
controller = createController(); | |
})); | |
it('should have a fixed slider value', function () { | |
expect($scope.sliderValue).toEqual(4600); | |
}); | |
}); | |
// | |
// The error I get is | |
// Error: [$injector:unpr] Unknown provider: genericServiceProvider <- genericService | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment