mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Add test for when the FF is off
This commit is contained in:
@@ -82,3 +82,23 @@ test("getConfigFileInput ignores empty repository property value", async (t) =>
|
||||
);
|
||||
t.is(result, undefined);
|
||||
});
|
||||
|
||||
test("getConfigFileInput ignores repository property value when FF is off", async (t) => {
|
||||
const logger = new RecordingLogger();
|
||||
const actionsEnv = getTestActionsEnv();
|
||||
|
||||
// Since the FF is off, we should ignore the repository property value.
|
||||
const result = getConfigFileInput(
|
||||
logger,
|
||||
actionsEnv,
|
||||
repositoryProperties,
|
||||
false,
|
||||
);
|
||||
t.is(result, undefined);
|
||||
|
||||
t.false(
|
||||
logger.hasMessage(
|
||||
"Using configuration file input from repository property",
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user