12 lines
363 B
JavaScript
12 lines
363 B
JavaScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { mapOperationPayload } from "../../src/adapters/http/resource-mapper.js";
|
|
|
|
describe("platform DTO mapper boundary", () => {
|
|
it("fails closed when no feature mapper was injected", () => {
|
|
expect(() => mapOperationPayload("UNKNOWN", {})).toThrow(
|
|
"No boundary mapper registered",
|
|
);
|
|
});
|
|
});
|