diff --git a/packages/component-library/src/components/_internal/sw-floating-ui/sw-floating-ui.spec.ts b/packages/component-library/src/components/_internal/sw-floating-ui/sw-floating-ui.spec.ts index 4b731421b..1f882e981 100644 --- a/packages/component-library/src/components/_internal/sw-floating-ui/sw-floating-ui.spec.ts +++ b/packages/component-library/src/components/_internal/sw-floating-ui/sw-floating-ui.spec.ts @@ -1,7 +1,7 @@ import { mount, Wrapper } from "@vue/test-utils"; import SwFloatingUi from "./sw-floating-ui.vue"; -// mock resizeOvserver +// mock resizeObserver global.ResizeObserver = class ResizeObserver { observe() { // do nothing @@ -90,7 +90,7 @@ describe("sw-floating-ui", () => { it.only("should render the arrow when prop is set", async () => { wrapper = createWrapper(); - + await wrapper.setProps({ showArrow: true, isOpened: true, @@ -124,11 +124,11 @@ describe("sw-floating-ui", () => { }); await wrapper.destroy(); - + const floatingUi = document.querySelector(".sw-floating-ui"); const floatingUiContent = document.querySelector(".sw-floating-ui__content"); expect(floatingUi).toBeNull(); expect(floatingUiContent).toBeNull(); }) -}); \ No newline at end of file +});