mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Expand test to ensure it does not throw an exception
This commit is contained in:
@@ -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,
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user