mirror of
https://github.com/quartz-community/breadcrumbs.git
synced 2026-07-22 02:50:29 +00:00
Implement breadcrumbs component with file trie-based path resolution, configurable separators, and i18n support. 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 { Breadcrumbs } from "../src/index";
|
|
|
|
describe("Breadcrumbs", () => {
|
|
it("is exported as a function", () => {
|
|
expect(typeof Breadcrumbs).toBe("function");
|
|
});
|
|
|
|
it("returns a component with css property", () => {
|
|
const component = Breadcrumbs();
|
|
expect(typeof component).toBe("function");
|
|
expect(typeof component.css).toBe("string");
|
|
});
|
|
});
|