Skip to content

Commit f27f563

Browse files
committed
Add test for when the FF is off
1 parent 0025d0f commit f27f563

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/config/file.test.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,23 @@ test("getConfigFileInput ignores empty repository property value", async (t) =>
8282
);
8383
t.is(result, undefined);
8484
});
85+
86+
test("getConfigFileInput ignores repository property value when FF is off", async (t) => {
87+
const logger = new RecordingLogger();
88+
const actionsEnv = getTestActionsEnv();
89+
90+
// Since the FF is off, we should ignore the repository property value.
91+
const result = getConfigFileInput(
92+
logger,
93+
actionsEnv,
94+
repositoryProperties,
95+
false,
96+
);
97+
t.is(result, undefined);
98+
99+
t.false(
100+
logger.hasMessage(
101+
"Using configuration file input from repository property",
102+
),
103+
);
104+
});

0 commit comments

Comments
 (0)