@@ -22,7 +22,6 @@ import { afterAll, afterEach, describe, expect, it, vi } from "vitest";
2222import { runGitHubCopilotDeviceFlow } from "./login.js" ;
2323
2424const mocks = vi . hoisted ( ( ) => ( {
25- githubCopilotLoginCommand : vi . fn ( ) ,
2625 fetchWithSsrFGuard : vi . fn < typeof fetchWithSsrFGuard > ( async ( params ) => ( {
2726 response : await fetch ( params . url , params . init ) ,
2827 finalUrl : params . url ,
@@ -50,7 +49,6 @@ vi.mock("./register.runtime.js", () => ({
5049 DEFAULT_COPILOT_API_BASE_URL : "https://api.githubcopilot.test" ,
5150 resolveCopilotRuntimeAuth : mocks . resolveCopilotRuntimeAuth ,
5251 resolveCopilotStarterModel : mocks . resolveCopilotStarterModel ,
53- githubCopilotLoginCommand : mocks . githubCopilotLoginCommand ,
5452 fetchCopilotUsage : vi . fn ( ) ,
5553} ) ) ;
5654
@@ -663,7 +661,6 @@ describe("github-copilot plugin", () => {
663661 message : "GitHub Copilot auth already exists. Re-run login?" ,
664662 initialValue : false ,
665663 } ) ;
666- expect ( mocks . githubCopilotLoginCommand ) . not . toHaveBeenCalled ( ) ;
667664 expect ( result ) . toEqual ( {
668665 profiles : [
669666 {
@@ -1012,7 +1009,6 @@ describe("github-copilot plugin", () => {
10121009 message : "GitHub Copilot auth already exists. Re-run login?" ,
10131010 initialValue : false ,
10141011 } ) ;
1015- expect ( mocks . githubCopilotLoginCommand ) . not . toHaveBeenCalled ( ) ;
10161012 if ( ! result ) {
10171013 throw new Error ( "Expected GitHub Copilot auth result" ) ;
10181014 }
@@ -1287,7 +1283,6 @@ describe("github-copilot plugin", () => {
12871283 message : "GitHub Copilot auth already exists. Re-run login?" ,
12881284 initialValue : false ,
12891285 } ) ;
1290- expect ( mocks . githubCopilotLoginCommand ) . not . toHaveBeenCalled ( ) ;
12911286 expect ( result . profiles [ 0 ] ?. credential ) . toEqual ( {
12921287 type : "token" ,
12931288 provider : "github-copilot" ,
0 commit comments