mirror of
https://github.com/tauri-apps/tauri-search.git
synced 2026-02-04 02:41:20 +01:00
22 lines
637 B
TypeScript
22 lines
637 B
TypeScript
import { mount } from "@vue/test-utils";
|
|
import Counter from "../src/components/Counter.vue";
|
|
|
|
describe("Counter.vue", () => {
|
|
it.skip("should render", () => {
|
|
const wrapper = mount(Counter, { props: { initial: 10 } });
|
|
expect(wrapper.text()).toContain("10");
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
});
|
|
|
|
it.skip("should be interactive", async() => {
|
|
const wrapper = mount(Counter, { props: { initial: 0 } });
|
|
expect(wrapper.text()).toContain("0");
|
|
|
|
expect(wrapper.find(".inc").exists()).toBe(true);
|
|
|
|
await wrapper.get("button").trigger("click");
|
|
|
|
expect(wrapper.text()).toContain("1");
|
|
});
|
|
});
|