title: Testing Link with Enzyme
body: <p>I am trying to test a component with Enzyme and I am getting the following error:</p>
  
  <pre><code>Warning: Failed context type: The context `history` is marked as required in `Link`, but its value is `undefined`.
          in Link (at UserTable.js:30)
          in button (created by Button)
          in Button (at UserTable.js:29)
          in td (at UserTable.js:28)
          in tr (at UserTable.js:24)
          in tbody (at UserTable.js:43)
          in table (created by Table)
          in Table (at UserTable.js:41)
          in UserTable (at UserTable.test.js:19)
  </code></pre>
  
  <p>Here's my test:</p>
  
  <pre><code>import React from 'react';
  import { render } from 'enzyme';
  import { fromJS } from 'immutable';
  import { Table } from 'react-bootstrap';
  import UserTable from '../UserTable';
  
  const users = fromJS([{
      id: 2026429,
      login: 'rahulthewall',
      avatar_url: 'https://avatars1.githubusercontent.com/u/2026429?v=3',
      login: 'rahulthewall',
      html_url: 'https://github.com/rahulthewall',
  }]);
  
  describe('&lt;UserTable /&gt;', () =&gt; {
      // Prepare the components
      const context = { router: { isActive: (a, b) =&gt; true } };
      const wrapper = render(
          &lt;UserTable users={users} /&gt;,
          { context }
      );
      const table = wrapper.find('table');
      const thead = table.find('thead');
      const tbody = table.find('tbody');
      const headerRow = thead.find('tr');
      const bodyRows = tbody.find('tr');
  
      it('renders the table header', () =&gt; {
      expect(headerRow.length).toEqual(1);
          expect(headerRow.find('th').length).toEqual(4);
    });
  
      it('renders the table data', () =&gt; {
          expect(bodyRows.length).toEqual(1);
          expect(bodyRows.find('td').length).toEqual(4);
      });
  });
  </code></pre>
  
  <p>So the question I have is, how do I pass the History context to the component when I render it? I am kind of lost here. </p>