File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,12 @@ describe('Download dependencies', () => {
3131 const message = await info . getMessage ( ) ;
3232 const actions = await info . getActions ( ) ;
3333 const title = await actions [ 0 ] . getTitle ( ) ;
34- console . log ( message ) ;
35- await info . takeAction ( title ) ;
36- strictEqual ( title , 'Install' ) ;
34+ const source = await info . getSource ( ) ;
35+ if ( source . includes ( 'Modern Fortran' ) ) {
36+ console . log ( message ) ;
37+ await info . takeAction ( title ) ;
38+ strictEqual ( title , 'Install' ) ;
39+ }
3740 }
3841 } ) ;
3942 } ) ;
@@ -48,9 +51,12 @@ describe('Download dependencies', () => {
4851 const message = await info . getMessage ( ) ;
4952 const actions = await info . getActions ( ) ;
5053 const title = await actions [ 0 ] . getTitle ( ) ;
51- console . log ( `2nd lool: ${ message } ` ) ;
52- await info . takeAction ( title ) ;
53- strictEqual ( title , 'Install' ) ;
54+ const source = await info . getSource ( ) ;
55+ if ( source . includes ( 'Modern Fortran' ) ) {
56+ console . log ( message ) ;
57+ await info . takeAction ( title ) ;
58+ strictEqual ( title , 'Install' ) ;
59+ }
5460 }
5561 } ) ;
5662 } ) ;
You can’t perform that action at this time.
0 commit comments