File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -247,6 +247,17 @@ suite('OpenShift/Component', () => {
247247 expect ( result ) . equals ( 'There is no git repository at provided URL.' ) ;
248248 } ) ;
249249
250+ test ( 'shows error message when invalid URL provided' , async ( ) => {
251+ let result : string | Thenable < string > ;
252+ inputStub . onFirstCall ( ) . callsFake ( async ( options ?: vscode . InputBoxOptions , token ?: vscode . CancellationToken ) : Promise < string > => {
253+ result = await options . validateInput ( 'github' ) ;
254+ return Promise . resolve ( 'github' ) ;
255+ } ) ;
256+
257+ await Component . create ( appItem ) ;
258+ expect ( result ) . equals ( 'Invalid URL provided' ) ;
259+ } ) ;
260+
250261 test ( 'shows error message for empty git repository url' , async ( ) => {
251262 let result : string | Thenable < string > ;
252263 inputStub . onFirstCall ( ) . callsFake ( async ( options ?: vscode . InputBoxOptions , token ?: vscode . CancellationToken ) : Promise < string > => {
You can’t perform that action at this time.
0 commit comments