mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Remove packDownload()
This commit is contained in:
@@ -9,7 +9,7 @@ import * as sinon from "sinon";
|
||||
import * as actionsUtil from "./actions-util";
|
||||
import * as api from "./api-client";
|
||||
import { CachingKind } from "./caching-utils";
|
||||
import { PackDownloadOutput, createStubCodeQL } from "./codeql";
|
||||
import { createStubCodeQL } from "./codeql";
|
||||
import * as configUtils from "./config-utils";
|
||||
import { Feature } from "./feature-flags";
|
||||
import * as gitUtils from "./git-utils";
|
||||
@@ -143,9 +143,6 @@ test("load empty config", async (t) => {
|
||||
},
|
||||
};
|
||||
},
|
||||
async packDownload(): Promise<PackDownloadOutput> {
|
||||
return { packs: [] };
|
||||
},
|
||||
});
|
||||
|
||||
const config = await configUtils.initConfig(
|
||||
@@ -185,9 +182,6 @@ test("loading config saves config", async (t) => {
|
||||
},
|
||||
};
|
||||
},
|
||||
async packDownload(): Promise<PackDownloadOutput> {
|
||||
return { packs: [] };
|
||||
},
|
||||
});
|
||||
|
||||
// Sanity check the saved config file does not already exist
|
||||
@@ -310,9 +304,6 @@ test("load non-empty input", async (t) => {
|
||||
},
|
||||
};
|
||||
},
|
||||
async packDownload(): Promise<PackDownloadOutput> {
|
||||
return { packs: [] };
|
||||
},
|
||||
});
|
||||
|
||||
// Just create a generic config object with non-default values for all fields
|
||||
@@ -407,9 +398,6 @@ test("Using config input and file together, config input should be used.", async
|
||||
},
|
||||
};
|
||||
},
|
||||
async packDownload(): Promise<PackDownloadOutput> {
|
||||
return { packs: [] };
|
||||
},
|
||||
});
|
||||
|
||||
// Only JS, python packs will be ignored
|
||||
@@ -440,9 +428,6 @@ test("API client used when reading remote config", async (t) => {
|
||||
},
|
||||
};
|
||||
},
|
||||
async packDownload(): Promise<PackDownloadOutput> {
|
||||
return { packs: [] };
|
||||
},
|
||||
});
|
||||
|
||||
const inputFileContents = `
|
||||
@@ -542,9 +527,6 @@ test("No detected languages", async (t) => {
|
||||
async resolveLanguages() {
|
||||
return {};
|
||||
},
|
||||
async packDownload(): Promise<PackDownloadOutput> {
|
||||
return { packs: [] };
|
||||
},
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user