import { describe, it, expect } from "vitest"; import { mount } from "@vue/test-utils"; import MasterDetail from "../MasterDetail.vue"; describe("MasterDetail", () => { it("renders list + listHeader slots", () => { const wrapper = mount(MasterDetail, { slots: { listHeader: '
header
', list: '
items
', }, }); expect(wrapper.find(".lh").exists()).toBe(true); expect(wrapper.find(".l").exists()).toBe(true); }); it("falls back to the empty slot when detail is absent", () => { const wrapper = mount(MasterDetail, { slots: { list: '
items
', empty: "pick something", }, }); // ScrollArea injects its own