Skip to content

Commit

Permalink
fix: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Dec 23, 2024
1 parent a6bd87e commit 9915970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ exports[`should match snapshot 1`] = `
class="nut-indicator"
>
<div
class="nut-indicator-dot nut-indicator-dot"
class="nut-indicator-dot"
/>
<div
class="nut-indicator-dot nut-indicator-dot"
class="nut-indicator-dot"
/>
<div
class="nut-indicator-dot nut-indicator-dot"
class="nut-indicator-dot"
/>
</div>
</DocumentFragment>
Expand Down
4 changes: 3 additions & 1 deletion src/packages/indicator/__test__/indicator.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ test('should be shown when passing size and current', () => {
</Cell>
)
expect(container.querySelectorAll('.nut-indicator-dot')).toHaveLength(3)
expect(container.querySelectorAll('.nut-indicator-active')).toHaveLength(1)
expect(container.querySelectorAll('.nut-indicator-dot-active')).toHaveLength(
1
)
})

test('should be shown when custom node', () => {
Expand Down

0 comments on commit 9915970

Please sign in to comment.