mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-26 07:13:41 +01:00
15 lines
376 B
JavaScript
15 lines
376 B
JavaScript
import { shallowMount } from "@vue/test-utils";
|
|
import Index from "./Index";
|
|
|
|
describe("<Index />", () => {
|
|
test("is a Vue instance", () => {
|
|
const wrapper = shallowMount(Index);
|
|
expect(wrapper.isVueInstance()).toBeTruthy();
|
|
});
|
|
|
|
test("renders correctly", () => {
|
|
const wrapper = shallowMount(Index);
|
|
expect(wrapper.element).toMatchSnapshot();
|
|
});
|
|
});
|