Skip to content

Commit bf96b0d

Browse files
committed
Expand test to ensure it does not throw an exception
1 parent 337136a commit bf96b0d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/cli/output-cache.test.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ test.serial(
106106
test.serial("getCachedCodeQlVersion ignores non-existent file", async (t) => {
107107
await util.withTmpDir(async (tmpDir: string) => {
108108
const env = getTestEnv({ [EnvVar.TEMP]: tmpDir });
109-
t.is(outputCache.getCachedCodeQlVersion(env, "/path/to/codeql"), undefined);
109+
t.notThrows(() => {
110+
t.is(
111+
outputCache.getCachedCodeQlVersion(env, "/path/to/codeql"),
112+
undefined,
113+
);
114+
});
110115
});
111116
});

0 commit comments

Comments
 (0)