mirror of
https://github.com/quartz-community/recent-notes.git
synced 2026-07-22 02:50:28 +00:00
Implement recent notes component with configurable sorting, date formatting, and tag filtering. Uses direct imports from @quartz-community/types instead of ambient declaration files.
14 lines
419 B
TypeScript
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");
|
|
});
|
|
});
|