13 lines
449 B
TypeScript
13 lines
449 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { isFileScanDeliverable } from "./fileScanPolicy";
|
|
|
|
describe("file scan delivery policy", () => {
|
|
it.each(["pending", "infected", "skipped", "unknown", ""])("fails closed for %s", (scanStatus) => {
|
|
expect(isFileScanDeliverable(scanStatus)).toBe(false);
|
|
});
|
|
|
|
it("allows files only after a clean scanner verdict", () => {
|
|
expect(isFileScanDeliverable("clean")).toBe(true);
|
|
});
|
|
});
|