recent-notes/test/component.test.ts
saberzero1 77f65dd8da
feat(plugins): recent-notes as community plugin
Implement recent notes component with configurable sorting, date
formatting, and tag filtering. Uses direct imports from
@quartz-community/types instead of ambient declaration files.
2026-02-13 13:19:00 +01:00

14 lines
419 B
TypeScript

import { describe, expect, it } from "vitest";
import { RecentNotes } from "../src/index";
describe("RecentNotes", () => {
it("is exported as a function", () => {
expect(typeof RecentNotes).toBe("function");
});
it("returns a component with css property", () => {
const component = RecentNotes();
expect(typeof component).toBe("function");
expect(typeof component.css).toBe("string");
});
});