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