mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 11:13:21 +00:00
26 lines
779 B
TypeScript
26 lines
779 B
TypeScript
import { expect, it } from "vitest";
|
|
import { providerConfigurationRefusal } from "./providerConfigurationRefusal.js";
|
|
import { projectAnalysisError } from "./analysisErrorProjection.js";
|
|
|
|
it("retains provider-owned configuration diagnostics in public refusals", () => {
|
|
const failure = Object.assign(new Error("version unreadable"), {
|
|
diagnostics: {
|
|
selected_command: "/selected/apktool",
|
|
command_source: "environment",
|
|
remediation: "Inspect the selected launcher",
|
|
},
|
|
});
|
|
expect(
|
|
projectAnalysisError(
|
|
providerConfigurationRefusal(
|
|
"apktool",
|
|
"inspect_apktool_client",
|
|
failure,
|
|
),
|
|
),
|
|
).toMatchObject({
|
|
code: "capability_unavailable",
|
|
details: { diagnostics: failure.diagnostics },
|
|
});
|
|
});
|