@@ -16,9 +16,6 @@ import { createJwt } from "./auth.test.js";
1616import { marshall } from "@aws-sdk/util-dynamodb" ;
1717import { genericConfig } from "../../src/common/config.js" ;
1818import { randomUUID } from "node:crypto" ;
19- import { createGithubTeam } from "../../src/api/functions/github.js" ;
20- import { addLead , removeLead } from "../../src/api/functions/organizations.js" ;
21- import { modifyGroup } from "../../src/api/functions/entraId.js" ;
2219
2320const app = await init ( ) ;
2421const ddbMock = mockClient ( DynamoDBClient ) ;
@@ -48,17 +45,6 @@ vi.mock("../../src/api/functions/entraId.js", () => {
4845 } ) ,
4946 } ;
5047} ) ;
51- vi . mock ( "../../src/api/functions/github.js" , ( ) => {
52- return {
53- ...vi . importActual ( "../../src/api/functions/github.js" ) ,
54- createGithubTeam : vi . fn ( ) . mockImplementation ( async ( ) => {
55- return randomUUID ( ) ;
56- } ) ,
57- assignIdpGroupsToTeam : vi . fn ( ) . mockImplementation ( async ( ) => {
58- return ;
59- } ) ,
60- } ;
61- } ) ;
6248
6349const acmMeta = {
6450 primaryKey : "DEFINE#ACM" ,
@@ -417,16 +403,6 @@ describe("Organization info tests - Extended Coverage", () => {
417403 expect (
418404 ddbMock . commandCalls ( TransactWriteItemsCommand ) . length ,
419405 ) . toBeGreaterThan ( 0 ) ;
420- expect ( createGithubTeam ) . toHaveBeenCalledOnce ( ) ;
421- expect ( createGithubTeam ) . toHaveBeenCalledWith (
422- expect . objectContaining ( {
423- githubToken : "abc123testing" ,
424- orgId : "acm-uiuc-testing" ,
425- name : "social-adm-nonprod" ,
426- description : "Social Committee Admin" ,
427- parentTeamId : 14420860 ,
428- } ) ,
429- ) ;
430406 } ) ;
431407
432408 test ( "Successfully adds and removes Officers but skips Entra + GitHub integration" , async ( ) => {
@@ -489,8 +465,6 @@ describe("Organization info tests - Extended Coverage", () => {
489465 expect (
490466 ddbMock . commandCalls ( TransactWriteItemsCommand ) . length ,
491467 ) . toBeGreaterThan ( 0 ) ;
492- expect ( createGithubTeam ) . toHaveBeenCalledTimes ( 0 ) ;
493- expect ( modifyGroup ) . toHaveBeenCalledTimes ( 0 ) ;
494468 } ) ;
495469
496470 test ( "Organization lead can manage other leads" , async ( ) => {
0 commit comments