blob: 04148beda9ee8caec580017d80a73e22ec8d8ecd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { describe, expect, it } from '@jest/globals';
import { renderHook } from '@testing-library/react';
import { useScrollBarWidth } from './use-scrollbar-width';
describe('useScrollbarWidth', () => {
it('returns the scrollbar width', () => {
const { result } = renderHook(() => useScrollBarWidth());
// JSdom always return 0 for measurements.
expect(result.current).toBe(0);
});
});
|