mirror of
https://github.com/github/codeql-action.git
synced 2026-05-21 13:04:08 +00:00
97fb30df6b
This feature has been supported since CodeQL CLI v2.18.0, which is below the new minimum version.
19 lines
498 B
TypeScript
19 lines
498 B
TypeScript
import test from "ava";
|
|
|
|
import { makeVersionInfo } from "./testing-utils";
|
|
import { ToolsFeature, isSupportedToolsFeature } from "./tools-features";
|
|
|
|
test("isSupportedToolsFeature", async (t) => {
|
|
const versionInfo = makeVersionInfo("1.0.0");
|
|
|
|
t.false(
|
|
isSupportedToolsFeature(versionInfo, ToolsFeature.BundleSupportsOverlay),
|
|
);
|
|
|
|
versionInfo.features = { bundleSupportsOverlay: true };
|
|
|
|
t.true(
|
|
isSupportedToolsFeature(versionInfo, ToolsFeature.BundleSupportsOverlay),
|
|
);
|
|
});
|