import { countKeywords } from "@ax/components/KeywordsPreviewModal/utils";

describe("countKeywords", () => {
	it("should return empty object when div has no .frame-content iframe", () => {
		const div = document.createElement("div");
		const result = countKeywords(div, ["seo", "react"]);
		expect(result).toEqual({});
	});

	it("should return empty object for empty keywords array", () => {
		const div = document.createElement("div");
		const result = countKeywords(div, []);
		expect(result).toEqual({});
	});
});
