text: import React from 'react'
  import renderer from 'react-test-renderer'
  import { Tabs, Tab } from 'common/widgets'
  import { app } from 'global/app'
  
  describe('Tabs', function() {
      beforeEach(() => {
          app.fake('ui')
      })
  
      it(`simple render`, () => {
          const component =  renderer.create(
              <Tabs>
                  <Tab title="tab - 0">tab - 0</Tab>
                  <Tab title="tab - 1">tab - 1</Tab>
                  <Tab title="tab - 2">tab - 2</Tab>
              </Tabs>
          ).toJSON()
  
          expect(component).toMatchSnapshot()
      })
  
      it(`render disabled tab`, () => {
          const component =  renderer.create(
              <Tabs>
                  <Tab title="tab - 0" disabled>
                      tab - 0
                  </Tab>
                  <Tab title="tab - 1" disabled>
                      tab - 1
                  </Tab>
                  <Tab title="tab - 2">
                      tab - 2
                  </Tab>
              </Tabs>
          ).toJSON()
  
          expect(component).toMatchSnapshot()
      })
  
      it(`render active tab with index 2`, () => {
          const component =  renderer.create(
              <Tabs active={2}>
                  <Tab title="tab - 0">
                      tab - 0
                  </Tab>
                  <Tab title="tab - 1">
                      tab - 1
                  </Tab>
                  <Tab title="tab - 2">
                      tab - 2
                  </Tab>
              </Tabs>
          ).toJSON()
  
          expect(component).toMatchSnapshot()
      })
  
      it(`render empty tabs`, () => {
          const component =  renderer.create(
              <Tabs active={2} />
          ).toJSON()
  
          expect(component).toMatchSnapshot()
      })
  
      it(`render all disabled tabs`, () => {
          const component =  renderer.create(
              <Tabs active={0} >
                  <Tab title="tab - 0" disabled />
                  <Tab title="tab - 1" disabled />
                  <Tab title="tab - 2" disabled />
              </Tabs>
          ).toJSON()
  
          expect(component).toMatchSnapshot()
      })
  })