提交 91fbf42c 编写于 作者: H higashi

Format file

上级 589bd53b
......@@ -351,9 +351,9 @@ export default class DeployFromSettingsController {
let imagename;
if (index > -1) {
imagename = this.containerImage.substring(index + 1);
imagename = this.containerImage.substring(index + 1);
} else {
imagename = this.containerImage;
imagename = this.containerImage;
}
index = (imagename || '').lastIndexOf(':');
......
......@@ -112,16 +112,17 @@ describe('DeployFromSettings controller', () => {
});
it('should return empty string when containerImage is not empty and does not containe `:`' +
' delimiter after `/` delimiter', () => {
// given
ctrl.containerImage = 'private.registry:5000/test';
' delimiter after `/` delimiter',
() => {
// given
ctrl.containerImage = 'private.registry:5000/test';
// when
let result = ctrl.getContainerImageVersion_();
// when
let result = ctrl.getContainerImageVersion_();
// then
expect(result).toEqual('');
});
// then
expect(result).toEqual('');
});
it('should return empty array when labels array is empty', () => {
// given
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册