mirror of https://github.com/grafana/grafana
refactoring: custom scrollbars PR updated, #13175
parent
1415bed045
commit
35ef51dca9
@ -1,14 +1,14 @@ |
||||
import React from 'react'; |
||||
import renderer from 'react-test-renderer'; |
||||
import GrafanaScrollbar from './GrafanaScrollbar'; |
||||
import CustomScrollbar from './CustomScrollbar'; |
||||
|
||||
describe('GrafanaScrollbar', () => { |
||||
describe('CustomScrollbar', () => { |
||||
it('renders correctly', () => { |
||||
const tree = renderer |
||||
.create( |
||||
<GrafanaScrollbar> |
||||
<CustomScrollbar> |
||||
<p>Scrollable content</p> |
||||
</GrafanaScrollbar> |
||||
</CustomScrollbar> |
||||
) |
||||
.toJSON(); |
||||
expect(tree).toMatchSnapshot(); |
@ -1,6 +1,6 @@ |
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||
|
||||
exports[`GrafanaScrollbar renders correctly 1`] = ` |
||||
exports[`CustomScrollbar renders correctly 1`] = ` |
||||
<div |
||||
className="custom-scrollbars" |
||||
style={ |
Loading…
Reference in new issue