Error should be reported when only a space is entered

Change-Id: Ie6bfb7e811ceba80bdef8a3cc03df1cde1ac6b86
Closes-Bug: #1813508
This commit is contained in:
pengyuesheng 2019-01-28 09:25:48 +08:00
parent 48a60ad524
commit 677dd6c936
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@
];
function createContainer() {
var model = {name: '', public: false};
var model = {public: false};
var config = {
title: gettext('Create Container'),
schema: createContainerSchema,

View File

@ -206,7 +206,7 @@
// when the modal is resolved, make sure create is called
deferred.resolve();
$rootScope.$apply();
expect(ctrl.createContainerAction).toHaveBeenCalledWith({name: '', public: false});
expect(ctrl.createContainerAction).toHaveBeenCalledWith({public: false});
});
it('should check for container existence - with presence', function test() {