correct and complete unit tests in Front-End
This commit is contained in:
15
tests/unit/specs/components/stories/ActorInlineStory.spec.ts
Normal file
15
tests/unit/specs/components/stories/ActorInlineStory.spec.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { mount, VueWrapper } from "@vue/test-utils";
|
||||
import ActorInlineStory from "@/components/Account/ActorInline.story.vue";
|
||||
|
||||
describe("Actor Inline Story", () => {
|
||||
let wrapper: VueWrapper;
|
||||
|
||||
const generateWrapper = () => {
|
||||
wrapper = mount(ActorInlineStory);
|
||||
};
|
||||
it("Default", async () => {
|
||||
generateWrapper();
|
||||
expect(wrapper.html()).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user