import { resolve } from "node:path";
import { describe, expect, it } from "vitest";
import { html } from "../../test/render.js";
import { snapshotFixtures } from "../../test/snapshot.js";
import { snapshotStylesheet } from "../../test/stylesheet.js";
import { fixtures } from "./LabTip.fixtures.js";
import * as family from "./LabTip.js";
snapshotFixtures(family.LabTip, fixtures);
describe("every export renders its element and class", () => {
for (const [exportName, Component] of Object.entries(family)) {
it(exportName, () => {
expect(html(x)).toMatchSnapshot();
});
}
it("bubble placements", () => {
for (const placement of ["top", "bottom", "left", "right"] as const) {
expect(html(tip)).toMatchSnapshot();
}
});
});
snapshotStylesheet(resolve(__dirname, "./LabTip.css"));