import React from 'react'
import { expect } from 'chai'
import sinon from 'sinon'
import {findDOMNode} from 'react-dom'

import TestUtils, {
  createRenderer,
  renderIntoDocument,
  Simulate
} from 'react-addons-test-utils'

import Text from '../src//Text.js'

describe('Text', () => {

  it('should render a span react element', () => {
    let shallowRenderer = createRenderer()
    shallowRenderer.render(<Text>text</Text>)
    let result = shallowRenderer.getRenderOutput()
    expect(React.isValidElement(result)).to.be.true
    expect(result.type).equal('span')
  })

})
