From 1152fd3a8b7bd19abbf1e5e161559442e0ddc4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20CG?= Date: Wed, 7 Aug 2024 15:31:07 +0200 Subject: [PATCH] test(components): propsData is now props --- .../src/components/__tests__/base-dropdown.spec.ts | 2 +- .../src/components/__tests__/base-event-button.spec.ts | 4 +--- .../src/components/__tests__/base-keyboard-navigation.spec.ts | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/x-components/src/components/__tests__/base-dropdown.spec.ts b/packages/x-components/src/components/__tests__/base-dropdown.spec.ts index bac66c6d1f..264ff6831f 100644 --- a/packages/x-components/src/components/__tests__/base-dropdown.spec.ts +++ b/packages/x-components/src/components/__tests__/base-dropdown.spec.ts @@ -25,7 +25,7 @@ function renderDropdown({ data: () => ({ value: initialValue }) }, { - propsData: { items } + props: { items } } ); diff --git a/packages/x-components/src/components/__tests__/base-event-button.spec.ts b/packages/x-components/src/components/__tests__/base-event-button.spec.ts index 9e2f08d70e..65dbbac43c 100644 --- a/packages/x-components/src/components/__tests__/base-event-button.spec.ts +++ b/packages/x-components/src/components/__tests__/base-event-button.spec.ts @@ -12,9 +12,7 @@ function render(options: ComponentMountingOptions = {}) const wrapper = mount(BaseEventButton, { props: { events: {} }, slots: { default: stubSlot }, - global: { - plugins: [installNewXPlugin()] - }, + global: { plugins: [installNewXPlugin()] }, ...options }); diff --git a/packages/x-components/src/components/__tests__/base-keyboard-navigation.spec.ts b/packages/x-components/src/components/__tests__/base-keyboard-navigation.spec.ts index fbd947aa9a..466b9a7011 100644 --- a/packages/x-components/src/components/__tests__/base-keyboard-navigation.spec.ts +++ b/packages/x-components/src/components/__tests__/base-keyboard-navigation.spec.ts @@ -13,7 +13,7 @@ describe('testing keyboard navigation component', () => { ); mount(BaseKeyboardNavigation, { global: { plugins: [installNewXPlugin()] }, - propsData: { + props: { navigationHijacker: [ { xEvent: 'UserPressedArrowKey', @@ -40,7 +40,7 @@ describe('testing keyboard navigation component', () => { .mockReturnValue(undefined); const keyboardNavigation = mount(BaseKeyboardNavigation, { global: { plugins: [installNewXPlugin()] }, - propsData: { + props: { eventsForDirectionLimit: { ArrowUp: 'UserReachedEmpathizeTop' }