Skip to content

Commit

Permalink
Merge pull request #11765 from qmonmert/testclean2
Browse files Browse the repository at this point in the history
Use object property shorthand
  • Loading branch information
murdos authored Jan 20, 2025
2 parents e60cd87 + 407eea1 commit 84fad85
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('MiniMap component', () => {
landscapeContainer.scroll = vi.fn();

const wrapper = mount(LandscapeMiniMapVue, {
props: { landscapeContainer: landscapeContainer },
props: { landscapeContainer },
});

const minimapViewer = wrapper.find(wrappedElement('minimap-viewer'));
Expand Down Expand Up @@ -58,7 +58,7 @@ describe('MiniMap component', () => {
landscapeContainer.scroll = vi.fn();

const wrapper = mount(LandscapeMiniMapVue, {
props: { landscapeContainer: landscapeContainer },
props: { landscapeContainer },
});

const minimapViewer = wrapper.find(wrappedElement('minimap-viewer'));
Expand All @@ -75,7 +75,7 @@ describe('MiniMap component', () => {
vi.spyOn(landscapeContainer, 'addEventListener');

mount(LandscapeMiniMapVue, {
props: { landscapeContainer: landscapeContainer },
props: { landscapeContainer },
});

landscapeContainer.dispatchEvent(new Event('scroll'));
Expand All @@ -87,7 +87,7 @@ describe('MiniMap component', () => {
const landscapeContainer = buildLandscapeContainer();

const wrapper = mount(LandscapeMiniMapVue, {
props: { landscapeContainer: landscapeContainer },
props: { landscapeContainer },
});

await wrapper.find(wrappedElement('show-minimap-btn')).trigger('click');
Expand Down

0 comments on commit 84fad85

Please sign in to comment.