mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 06:30:10 +08:00
Fix unit test
This commit is contained in:
@@ -951,7 +951,7 @@ test("No detected languages", async (t) => {
|
||||
|
||||
test("Unknown languages", async (t) => {
|
||||
return await util.withTmpDir(async (tmpDir) => {
|
||||
const languages = "ruby,english";
|
||||
const languages = "rubbish,english";
|
||||
|
||||
try {
|
||||
await configUtils.initConfig(
|
||||
@@ -972,7 +972,7 @@ test("Unknown languages", async (t) => {
|
||||
} catch (err) {
|
||||
t.deepEqual(
|
||||
err,
|
||||
new Error(configUtils.getUnknownLanguagesError(["ruby", "english"]))
|
||||
new Error(configUtils.getUnknownLanguagesError(["rubbish", "english"]))
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user