@@ -631,12 +631,12 @@ describe("prepareCodeTour", () => {
631631 await mkdir ( tourDirPath ) ;
632632
633633 // spy that we open the workspace file by calling the 'vscode.openFolder' command
634- const openFileSpy = jest . spyOn ( commands , "executeCommand" ) ;
635- openFileSpy . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
634+ const commandSpy = jest . spyOn ( commands , "executeCommand" ) ;
635+ commandSpy . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
636636
637637 await prepareCodeTour ( ) ;
638638
639- expect ( openFileSpy ) . not . toHaveBeenCalledWith ( "vscode.openFolder" ) ;
639+ expect ( commandSpy ) . not . toHaveBeenCalledWith ( "vscode.openFolder" ) ;
640640 } ) ;
641641 } ) ;
642642 } ) ;
@@ -648,24 +648,24 @@ describe("prepareCodeTour", () => {
648648 await mkdir ( tourDirPath ) ;
649649
650650 // spy that we open the workspace file by calling the 'vscode.openFolder' command
651- const openFileSpy = jest . spyOn ( commands , "executeCommand" ) ;
652- openFileSpy . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
651+ const commandSpy = jest . spyOn ( commands , "executeCommand" ) ;
652+ commandSpy . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
653653
654654 await prepareCodeTour ( ) ;
655655
656- expect ( openFileSpy ) . not . toHaveBeenCalledWith ( "vscode.openFolder" ) ;
656+ expect ( commandSpy ) . not . toHaveBeenCalledWith ( "vscode.openFolder" ) ;
657657 } ) ;
658658 } ) ;
659659
660660 describe ( "if we're in a different repo with no tour" , ( ) => {
661661 it ( "should not open the tutorial workspace" , async ( ) => {
662662 // spy that we open the workspace file by calling the 'vscode.openFolder' command
663- const openFileSpy = jest . spyOn ( commands , "executeCommand" ) ;
664- openFileSpy . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
663+ const commandSpy = jest . spyOn ( commands , "executeCommand" ) ;
664+ commandSpy . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
665665
666666 await prepareCodeTour ( ) ;
667667
668- expect ( openFileSpy ) . not . toHaveBeenCalledWith ( "vscode.openFolder" ) ;
668+ expect ( commandSpy ) . not . toHaveBeenCalledWith ( "vscode.openFolder" ) ;
669669 } ) ;
670670 } ) ;
671671} ) ;
0 commit comments