Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieferrer committed Nov 26, 2024
1 parent cb0ddf2 commit e67a114
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 47 deletions.
2 changes: 1 addition & 1 deletion @kiva/kv-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"dependencies": {
"@kiva/kv-tokens": "^2.16.0",
"@mdi/js": "^7.4.47",
"@vueuse/integrations": "^7.6.0",
"@vueuse/integrations": "^9.13.0",
"aria-hidden": "^1.1.3",
"change-case": "^4.1.2",
"date-fns": "^2.30.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Default Button', () => {
props: { to: '/home' },
});
const anchorEl = getByRole('link', { name: 'Test Button' });
expect(anchorEl.href).toEqual('http://localhost/#/home');
expect(anchorEl.href).toEqual('http://localhost/home');
});

it('renders as an anchor tag when passed a route object', () => {
Expand All @@ -43,7 +43,7 @@ describe('Default Button', () => {
},
});
const anchorEl = getByRole('link', { name: 'Test Button' });
expect(anchorEl.href).toEqual('http://localhost/#/test-route-with-query?param1=a');
expect(anchorEl.href).toEqual('http://localhost/test-route-with-query?param1=a');
});

it('shows a ripple animation when clicked', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('Default Button', () => {
props: { to: '/home' },
});
const anchorEl = getByRole('link', { name: 'Test Text Link' });
expect(anchorEl.href).toEqual('http://localhost/#/home');
expect(anchorEl.href).toEqual('http://localhost/home');
});

it('renders as an anchor tag when passed a route object', () => {
Expand All @@ -42,7 +42,7 @@ describe('Default Button', () => {
},
});
const anchorEl = getByRole('link', { name: 'Test Text Link' });
expect(anchorEl.href).toEqual('http://localhost/#/test-route-with-query?param1=a');
expect(anchorEl.href).toEqual('http://localhost/test-route-with-query?param1=a');
});

it('has no automated accessibility violations', async () => {
Expand Down
87 changes: 45 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e67a114

Please sign in to comment.