Remove unnecessary $locationProvider
settings
$locationProvider is not used in current implementation. Delete related codes including unittest. Change-Id: I1d2b3540fe151c6a06dfc037f86e33241035d003
This commit is contained in:
parent
c135a42d80
commit
5220939cc8
@ -13,13 +13,6 @@
|
||||
.warnPalette('red')
|
||||
;
|
||||
}])
|
||||
.config(['$locationProvider', function($locationProvider) {
|
||||
$locationProvider.html5Mode({
|
||||
enabled: true,
|
||||
requireBase: false,
|
||||
rewriteLinks: false,
|
||||
});
|
||||
}])
|
||||
.config(['$provide', '$windowProvider', function($provide, $windowProvider){
|
||||
var project_window = $windowProvider.$get();
|
||||
var staticPath = project_window.STATIC_URL + 'dashboard/project/heat_dashboard/template_generator/';
|
||||
|
@ -20,23 +20,4 @@
|
||||
);
|
||||
});
|
||||
|
||||
describe('horizon.dashboard.project.heat_dashboard.template_generator $locationProvider config', function () {
|
||||
var $locationProvider;
|
||||
beforeEach(function () {
|
||||
angular.module('locationProviderConfig', [])
|
||||
.config(function(_$locationProvider_) {
|
||||
$locationProvider= _$locationProvider_;
|
||||
spyOn($locationProvider, 'html5Mode');
|
||||
});
|
||||
module('locationProviderConfig');
|
||||
module('horizon.dashboard.project.heat_dashboard.template_generator');
|
||||
inject();
|
||||
});
|
||||
|
||||
it('should set html5 mode', function() {
|
||||
expect($locationProvider.html5Mode)
|
||||
.toHaveBeenCalledWith({ enabled: true, requireBase: false, rewriteLinks: false });
|
||||
});
|
||||
|
||||
});
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user