content: /* eslint-env jest*/
  jest.unmock('../ClockTime');
  
  import React from 'react';
  import { findDOMNode } from 'react-dom';
  import { renderIntoDocument } from 'react-dom/test-utils';
  
  import ClockTime from '../ClockTime';
  
  const noop = () => {};
  
  describe('ClockTime', () => {
    it('displays the time', () => {
      const time = renderIntoDocument(
        <ClockTime time={1} index={0} active={false} radius={120} onKeyboardFocus={noop} />
      );
  
      const timeNode = findDOMNode(time);
      expect(timeNode.textContent).toBe('1');
    });
  
    it('sets top and left style properties on mount', () => {
      const time = renderIntoDocument(
        <ClockTime time={1} index={0} active={false} radius={120} onKeyboardFocus={noop} />
      );
  
      expect(time.state.style).toBeDefined();
      expect(time.state.style).not.toBe(null);
      expect(time.state.style.top).toBeDefined();
      expect(time.state.style.left).toBeDefined();
    });
  });
  