finish overlayscrollbars-react

This commit is contained in:
Rene Haas
2022-11-02 18:28:57 +01:00
parent cf9cda1cf6
commit 23f120e164
5 changed files with 166 additions and 67 deletions
@@ -97,11 +97,11 @@ describe('OverlayScrollbarsComponent', () => {
const ref: RefObject<OverlayScrollbarsComponentRef> = { current: null };
const { container } = render(<OverlayScrollbarsComponent ref={ref} />);
const { instance, target } = ref.current!;
const { instance, element } = ref.current!;
expect(instance).toBeTypeOf('function');
expect(target).toBeTypeOf('function');
expect(element).toBeTypeOf('function');
expect(OverlayScrollbars.valid(instance())).toBe(true);
expect(target()).toBe(container.firstElementChild);
expect(element()).toBe(container.firstElementChild);
});
test('options', () => {