mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
@@ -41,6 +41,7 @@ export default
|
|||||||
$scope.fileName = N_("No file selected.");
|
$scope.fileName = N_("No file selected.");
|
||||||
$scope.title = $rootScope.licenseMissing ? ("Tower " + i18n._("License")) : i18n._("License Management");
|
$scope.title = $rootScope.licenseMissing ? ("Tower " + i18n._("License")) : i18n._("License Management");
|
||||||
Wait('start');
|
Wait('start');
|
||||||
|
ConfigService.delete();
|
||||||
ConfigService.getConfig().then(function(config){
|
ConfigService.getConfig().then(function(config){
|
||||||
$scope.license = config;
|
$scope.license = config;
|
||||||
$scope.license.version = config.version.split('-')[0];
|
$scope.license.version = config.version.split('-')[0];
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ describe('Controller: LicenseController', () => {
|
|||||||
|
|
||||||
// Suites
|
// Suites
|
||||||
it('should GET a config object on initialization', ()=>{
|
it('should GET a config object on initialization', ()=>{
|
||||||
|
expect(ConfigService.delete).toHaveBeenCalled();
|
||||||
expect(ConfigService.getConfig).toHaveBeenCalled();
|
expect(ConfigService.getConfig).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user