title: How to get rid of use absolute urls error when trying to async action creators in React?
body: <p>I keep getting the error that I need to use absolute URL's from <code>fetch</code> when I am trying to mock the test call with <code>fetchMock</code> and <code>nock</code>.  </p>
  
  <pre><code>describe('fetchFileNames creator @AT-fetchTodosIfNeeded@', () =&gt; {
      it('should create RECEIVE_FILE_NAMES_SUCCESS after the fetching is done', () =&gt; {
  
          const fileNames = ['testFile1', 'testFile2', 'testFile3'];
          const expectedActions = [
              { type: ac.REQUEST_FILE_NAMES },
              { type: ac.RECEIVE_FILE_NAMES_SUCCESS, fileNames }
          ];
          const store = mockStore({
              files: {
                  fileNames
              }
          });
  
          fetchMock.get('*', { files: fileNames});
  
          return store.dispatch(at.fetchFileNames())
              .then(() =&gt; {
                  var createdActions = store.getActions();
                  delete createdActions[1].receivedAt;
                  expect(store.getActions()).to.deep.equal(expectedActions);
              });
      });
  });
  </code></pre>