mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-08 04:02:28 +03:00
add test for data-overlayscrollbars-initialize attribute
This commit is contained in:
@@ -42,6 +42,12 @@ describe('OverlayScrollbarsComponent', () => {
|
||||
expect(OverlayScrollbars.valid(osInstance)).toBe(true);
|
||||
});
|
||||
|
||||
test('data-overlayscrollbars-initialize', async () => {
|
||||
const { container } = render(<OverlayScrollbarsComponent />);
|
||||
|
||||
expect(container.querySelector('[data-overlayscrollbars-initialize]')).toBeTruthy();
|
||||
});
|
||||
|
||||
test('children', () => {
|
||||
const { container } = render(
|
||||
<OverlayScrollbarsComponent>
|
||||
|
||||
Reference in New Issue
Block a user