@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
14 lines (10 loc) • 387 B
text/typescript
import { render, screen } from "@testing-library/vue";
import MtAvatar from "./mt-avatar.vue";
describe("mt-avatar", () => {
it("shows initials", () => {
render(MtAvatar, { props: { firstName: "John", lastName: "Doe" } });
const result = screen.getByTestId("mt-avatar-initials");
expect(result).toBeInTheDocument();
expect(result).toHaveTextContent("JD");
});
});