import React from 'react'; import { create } from 'react-test-renderer'; import { TabsComposition } from '..'; test('Default use', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Without ID', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Empty', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Function elements', () => { const tree = create( 'Tab #1', elPanel: () => 'Panel #1' }]} /> ); expect(tree.toJSON()).toMatchSnapshot(); });