import React from 'react' import renderer from 'react-test-renderer' import Tabs, { TabNav, TabPane } from '.' describe('Tabs', () => { test('basic.', () => { const tree = renderer.create( first second third ).toJSON() expect(tree).toMatchSnapshot() }) test('vertical', () => { const tree = renderer.create( first second third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third third ).toJSON() expect(tree).toMatchSnapshot() }) test('button like', () => { const tree = renderer.create( first second third ).toJSON() expect(tree).toMatchSnapshot() }) test('TabNav only', () => { const tree = renderer.create( 选项一 选项二 选项三 ).toJSON() expect(tree).toMatchSnapshot() }) test('extra.', () => { const tree = renderer.create( first second third ).toJSON() expect(tree).toMatchSnapshot() }) })