mirror of
https://github.com/quartz-community/comments.git
synced 2026-07-22 02:50:28 +00:00
22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
import { describe, it, expect } from "vitest";
|
|
import Comments from "../src/components/Comments";
|
|
|
|
describe("Comments Plugin", () => {
|
|
it("should export Comments component", () => {
|
|
expect(Comments).toBeDefined();
|
|
});
|
|
|
|
it("should create a component with options", () => {
|
|
const component = Comments({
|
|
provider: "giscus",
|
|
options: {
|
|
repo: "test/repo",
|
|
repoId: "test-id",
|
|
category: "Announcements",
|
|
categoryId: "test-cat-id",
|
|
},
|
|
});
|
|
expect(component).toBeDefined();
|
|
expect(typeof component).toBe("function");
|
|
});
|
|
});
|