Skip to content

Commit

Permalink
task(HTL-112172): Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coolestKev committed Dec 17, 2024
1 parent 792a5f3 commit 20cf067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Drawer/hooks/useSnap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { renderHook } from '@testing-library/react'

describe('Drawer snap hook unit test', () => {
test('Snap position initialized correctly', () => {
const { result } = renderHook(() => useSnap(['0%', '20%', '30%']))
const { result } = renderHook(() => useSnap(['0%', '20%', '30%'], ['100%', '100%', '100%']))
const { snapPosition, handleSnap } = result.current
expect(snapPosition).toBe('0%')

Expand Down

0 comments on commit 20cf067

Please sign in to comment.