fix(lint): odoo-bills-adapter AUD0-body — disable med skäl (CI-fynd)
CI (SIAX Cloud) / sonar (pull_request) Skipped
masterplan-lock / check (pull_request) Successful in 7s
masterplan-lock / check (push) Successful in 9s
CI (SIAX Cloud) / integration (pull_request) Successful in 35s
CI (SIAX Cloud) / quality (pull_request) Failing after 39s
Security Scan (SIAX Cloud) / security (push) Successful in 1m12s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 1m14s
CI (SIAX Cloud) / security (pull_request) Successful in 1m18s
CI (SIAX Cloud) / integration (push) Skipped
CI (SIAX Cloud) / security (push) Successful in 21s
CI (SIAX Cloud) / sonar (push) Skipped
CI (SIAX Cloud) / quality (push) Failing after 37s

This commit is contained in:
2026-09-29 13:27:31 +02:00
parent e24f8e8af4
commit 5ffd41a461
+2
View File
@@ -257,6 +257,7 @@ describe("OdooBillsAdapter — partner resolution wired into write()", () => {
it("calls the injected matchPartner when partner_id is absent but vendor_org_nr is present, and forwards the resolved partner_id to Odoo", async () => {
const matchPartner = vi.fn(async () => ({ partner_id: 99, partner_name: "Acme AB" }));
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- AUD0-ingest-body är fri nyttolast
let capturedBody: any;
const fetchMock = vi.fn(async (_url: string, init?: RequestInit) => {
capturedBody = JSON.parse(init!.body as string);
@@ -278,6 +279,7 @@ describe("OdooBillsAdapter — partner resolution wired into write()", () => {
it("posts without a partner_id when no match is found — 'skickar utan partner-koppling'", async () => {
const matchPartner = vi.fn(async () => ({}));
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- AUD0-ingest-body är fri nyttolast
let capturedBody: any;
const fetchMock = vi.fn(async (_url: string, init?: RequestInit) => {
capturedBody = JSON.parse(init!.body as string);