Skip to content

Commit

Permalink
write same x,y value correction to positionModal() tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Marika Shanahan authored and Marika Shanahan committed Jun 17, 2022
1 parent 0d9f644 commit eab9777
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/unit/components/shepherd-modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('components/ShepherdModal', () => {
'M1024,768H0V0H1024V768ZM0,0a0,0,0,0,0-0,0V0a0,0,0,0,0,0,0H0a0,0,0,0,0,0-0V0a0,0,0,0,0-0-0Z'
);

await modalComponent.positionModal(0, 0, null, {
await modalComponent.positionModal(0, 0, 0, 0, null, {
getBoundingClientRect() {
return {
height: 250,
Expand Down Expand Up @@ -101,7 +101,7 @@ describe('components/ShepherdModal', () => {
'M1024,768H0V0H1024V768ZM0,0a0,0,0,0,0-0,0V0a0,0,0,0,0,0,0H0a0,0,0,0,0,0-0V0a0,0,0,0,0-0-0Z'
);

await modalComponent.positionModal(10, 0, null, {
await modalComponent.positionModal(10, 0, 0, 0, null, {
getBoundingClientRect() {
return {
height: 250,
Expand Down Expand Up @@ -143,7 +143,7 @@ describe('components/ShepherdModal', () => {
'M1024,768H0V0H1024V768ZM0,0a0,0,0,0,0-0,0V0a0,0,0,0,0,0,0H0a0,0,0,0,0,0-0V0a0,0,0,0,0-0-0Z'
);

await modalComponent.positionModal(0, 10, null, {
await modalComponent.positionModal(0, 10, 0, 0, null, {
getBoundingClientRect() {
return {
height: 250,
Expand Down Expand Up @@ -172,6 +172,8 @@ describe('components/ShepherdModal', () => {
});

await modalComponent.positionModal(
0,
0,
0,
0,
{
Expand Down Expand Up @@ -214,6 +216,8 @@ describe('components/ShepherdModal', () => {
});

await modalComponent.positionModal(
0,
0,
0,
0,
{
Expand Down

0 comments on commit eab9777

Please sign in to comment.