@@ -19,6 +19,7 @@ import { registerPythonStartup } from '../../../client/terminals/pythonStartup';
1919import { IExtensionContext } from '../../../client/common/types' ;
2020import * as pythonStartupLinkProvider from '../../../client/terminals/pythonStartupLinkProvider' ;
2121import { CustomTerminalLinkProvider } from '../../../client/terminals/pythonStartupLinkProvider' ;
22+ import { Repl } from '../../../client/common/utils/localize' ;
2223
2324suite ( 'Terminal - Shell Integration with PYTHONSTARTUP' , ( ) => {
2425 let getConfigurationStub : sinon . SinonStub ;
@@ -163,5 +164,17 @@ suite('Terminal - Shell Integration with PYTHONSTARTUP', () => {
163164
164165 assert . isNotNull ( links , 'Expected links to be not undefined' ) ;
165166 assert . isArray ( links , 'Expected links to be an array' ) ;
167+ assert . isNotEmpty ( links , 'Expected links to be not empty' ) ;
168+
169+ if ( Array . isArray ( links ) ) {
170+ assert . equal ( links [ 0 ] . command , 'python.startNativeREPL' , 'Expected command to be python.startNativeREPL' ) ;
171+ assert . equal (
172+ links [ 0 ] . startIndex ,
173+ context . line . indexOf ( 'VS Code Native REPL' ) ,
174+ 'Expected startIndex to be 0' ,
175+ ) ;
176+ assert . equal ( links [ 0 ] . length , 'VS Code Native REPL' . length , 'Expected length to be 16' ) ;
177+ assert . equal ( links [ 0 ] . tooltip , Repl . launchNativeRepl , 'Expected tooltip to be Launch VS Code Native REPL' ) ;
178+ }
166179 } ) ;
167180} ) ;
0 commit comments