diff --git a/packages/simplebar-react/__snapshots__/index.test.js.snap b/packages/simplebar-react/__snapshots__/index.test.js.snap index 4adbb3e2..cd115ad3 100644 --- a/packages/simplebar-react/__snapshots__/index.test.js.snap +++ b/packages/simplebar-react/__snapshots__/index.test.js.snap @@ -63,6 +63,71 @@ exports[`renders with options 1`] = ` `; + +exports[`renders with scrollableNodeProps 1`] = ` +
+
+
+
+
+
+
+
+

+ Some content +

+

+ Some content +

+

+ Some content +

+

+ Some content +

+

+ Some content +

+
+
+
+
+
+
+
+
+
+
+
+
+`; + exports[`renders without crashing 1`] = `
@@ -10,7 +10,7 @@ export default function SimpleBar({ children, ...options }) {
-
{children}
+
{children}
diff --git a/packages/simplebar-react/index.test.js b/packages/simplebar-react/index.test.js index b8e4b13f..7491d194 100644 --- a/packages/simplebar-react/index.test.js +++ b/packages/simplebar-react/index.test.js @@ -26,3 +26,15 @@ test('renders with options', () => { let tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); + +test('renders with scrollableNodeProps', () => { + const component = renderer.create( + + {[...Array(5)].map((x, i) => +

Some content

+ )} +
+ ); + let tree = component.toJSON(); + expect(tree).toMatchSnapshot(); +});