mirror of
https://github.com/github/codeql-action.git
synced 2025-12-27 09:40:17 +08:00
25 lines
584 B
TypeScript
25 lines
584 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.IndirectTracingSupportsStaticBinaries,
|
|
),
|
|
);
|
|
|
|
versionInfo.features = { indirectTracingSupportsStaticBinaries: true };
|
|
|
|
t.true(
|
|
isSupportedToolsFeature(
|
|
versionInfo,
|
|
ToolsFeature.IndirectTracingSupportsStaticBinaries,
|
|
),
|
|
);
|
|
});
|