Skip to content

Commit

Permalink
fix: activity card tests (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 authored Jun 20, 2024
1 parent e7b1f73 commit f6e3106
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/activity-card/activity.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type Story = StoryObj<DActivityCard>;
export const Default: Story = {
args: {
name: 'Proof of humanity is expired',
// placeholder logo
logo: 'https://via.placeholder.com/150',
message: 'Proof of humanity is expired',
description: 'Your proof of humanity has expired. Please renew it if you need it.',
Expand Down
15 changes: 14 additions & 1 deletion src/components/activity-card/test/d-activity-card.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@ describe('d-activity-card', () => {
expect(page.root).toEqualHtml(`
<d-activity-card>
<mock:shadow-root>
<slot></slot>
<div class="border-b border-stroke flex gap-4 items-start py-2 w-fit">
<d-avatar shape="square"></d-avatar>
<div class="flex flex-col gap-2">
<h2></h2>
<d-text class="text-on-alt" size="s"></d-text>
<div class="flex gap-2.5 items-center">
<d-info-led></d-info-led>
<d-text size="xs"></d-text>
</div>
<div class="flex gap-2.5 justify-end">
<slot></slot>
</div>
</div>
</div>
</mock:shadow-root>
</d-activity-card>
`);
Expand Down

0 comments on commit f6e3106

Please sign in to comment.