Expand test to ensure it does not throw an exception

This commit is contained in:
Mario Campos
2026-08-12 11:39:32 -05:00
parent 337136ab8a
commit bf96b0df93

View File

@@ -106,6 +106,11 @@ test.serial(
test.serial("getCachedCodeQlVersion ignores non-existent file", async (t) => {
await util.withTmpDir(async (tmpDir: string) => {
const env = getTestEnv({ [EnvVar.TEMP]: tmpDir });
t.is(outputCache.getCachedCodeQlVersion(env, "/path/to/codeql"), undefined);
t.notThrows(() => {
t.is(
outputCache.getCachedCodeQlVersion(env, "/path/to/codeql"),
undefined,
);
});
});
});