mirror of
https://github.com/morluto/rea
synced 2026-10-27 14:42:18 -04:00
26881da76a
* feat(ghidra): enable Windows x64 read-only analysis * test(ghidra): exercise native Windows runtime boundaries * test(ghidra): verify current Windows inventory and isolate ACL observer * fix(ghidra): align Windows admission and address P0 review
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import type { DoctorProviderInspection } from "./Doctor.js";
|
|
import { providerRegistrationEnvironment } from "./SetupRegistrationEnvironment.js";
|
|
|
|
const inspection = (
|
|
overrides: Partial<DoctorProviderInspection> = {},
|
|
): DoctorProviderInspection => ({
|
|
id: "fixture",
|
|
configured: true,
|
|
available: false,
|
|
providerVersion: "1",
|
|
registrationEnvironment: {
|
|
REA_FIXTURE_PROVIDER_ROOT: "C:\\Tools\\Provider",
|
|
},
|
|
checks: [],
|
|
...overrides,
|
|
});
|
|
|
|
describe("provider registration settings", () => {
|
|
it("retains valid published paths when runtime capabilities are unavailable", () => {
|
|
expect(providerRegistrationEnvironment([inspection()])).toEqual({
|
|
REA_FIXTURE_PROVIDER_ROOT: "C:\\Tools\\Provider",
|
|
});
|
|
});
|
|
|
|
it("does not invent settings when the adapter cannot publish an installation", () => {
|
|
expect(
|
|
providerRegistrationEnvironment([
|
|
inspection({ configured: false, registrationEnvironment: {} }),
|
|
]),
|
|
).toEqual({});
|
|
});
|
|
|
|
it("keeps available-provider settings unchanged", () => {
|
|
expect(
|
|
providerRegistrationEnvironment([inspection({ available: true })]),
|
|
).toEqual({ REA_FIXTURE_PROVIDER_ROOT: "C:\\Tools\\Provider" });
|
|
});
|
|
});
|