text: import React from 'react';
  import TestUtils from 'react-dom/test-utils';
  import PollHeader from '../PollHeader';
  import TestWrapper from '../TestWrapper.js';
  
  describe('Poll Header', function() {
      var component;
      beforeEach(function(){
          component = TestUtils.renderIntoDocument(
              <TestWrapper>
                  <PollHeader text="Welcome to the Poll!" />
              </TestWrapper>
          );
      });
  
      it('renders without problems', function() {
          expect(component).toEqual(jasmine.anything());
      });
  
      it('prints a message', function() {
          var actual = TestUtils.findRenderedDOMComponentWithTag(component,'h1')
              .textContent;
          var expected = 'Welcome to the Poll!';
          expect(actual).toEqual(expected);
      });
  });