Constants in Jasmine unit tests
describe('Test', function() { beforeEach(function() { module('App', function($provide) { $provide.constant('CSRF_TOKEN', 'MOCK_CONSTANT'); // <= mock your constant }); }); // Tests go here });