Skip to content

Commit

Permalink
test(components): propsData is now props
Browse files Browse the repository at this point in the history
  • Loading branch information
victorcg88 committed Aug 7, 2024
1 parent b6974ef commit 1152fd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function renderDropdown({
data: () => ({ value: initialValue })
},
{
propsData: { items }
props: { items }
}
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ function render(options: ComponentMountingOptions<typeof BaseEventButton> = {})
const wrapper = mount(BaseEventButton, {
props: { events: {} },
slots: { default: stubSlot },
global: {
plugins: [installNewXPlugin()]
},
global: { plugins: [installNewXPlugin()] },
...options
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('testing keyboard navigation component', () => {
);
mount(BaseKeyboardNavigation, {
global: { plugins: [installNewXPlugin()] },
propsData: {
props: {
navigationHijacker: [
{
xEvent: 'UserPressedArrowKey',
Expand All @@ -40,7 +40,7 @@ describe('testing keyboard navigation component', () => {
.mockReturnValue(undefined);
const keyboardNavigation = mount(BaseKeyboardNavigation, {
global: { plugins: [installNewXPlugin()] },
propsData: {
props: {
eventsForDirectionLimit: {
ArrowUp: 'UserReachedEmpathizeTop'
}
Expand Down

0 comments on commit 1152fd3

Please sign in to comment.