mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 06:30:10 +08:00
Check available languages
This commit is contained in:
@@ -926,6 +926,11 @@ test("Invalid format of remote config handled correctly", async (t) => {
|
||||
test("No detected languages", async (t) => {
|
||||
return await util.withTmpDir(async (tmpDir) => {
|
||||
mockListLanguages([]);
|
||||
const codeQL = setCodeQL({
|
||||
async resolveLanguages() {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
|
||||
try {
|
||||
await configUtils.initConfig(
|
||||
@@ -936,7 +941,7 @@ test("No detected languages", async (t) => {
|
||||
{ owner: "github", repo: "example " },
|
||||
tmpDir,
|
||||
tmpDir,
|
||||
getCachedCodeQL(),
|
||||
codeQL,
|
||||
tmpDir,
|
||||
gitHubVersion,
|
||||
sampleApiDetails,
|
||||
|
||||
Reference in New Issue
Block a user