import { describe, expect, test } from "bun:test";
import { getAiCreateOutcome } from "@/lib/ai-create-flow";

describe("AI create flow settings", () => {
	test("single AI event stays in review flow when skip-review is disabled", () => {
		expect(getAiCreateOutcome(1, false)).toBe("review-single");
	});

	test("single AI event is created directly when skip-review is enabled", () => {
		expect(getAiCreateOutcome(1, true)).toBe("create-single");
	});

	test("multi-event AI responses always create directly regardless of skip-review", () => {
		expect(getAiCreateOutcome(2, false)).toBe("create-multiple");
		expect(getAiCreateOutcome(3, true)).toBe("create-multiple");
	});
});
