13 lines
304 B
TypeScript
13 lines
304 B
TypeScript
import { afterEach } from "vitest";
|
|
import { cleanup } from "@testing-library/vue";
|
|
|
|
afterEach(() => cleanup());
|
|
|
|
HTMLDialogElement.prototype.showModal = function showModal() {
|
|
this.setAttribute("open", "");
|
|
};
|
|
|
|
HTMLDialogElement.prototype.close = function close() {
|
|
this.removeAttribute("open");
|
|
};
|