diff --git a/app/actions/__tests__/requestgroups.test.js b/app/actions/__tests__/requestgroups.test.js index c4d63f194..e7b16763b 100644 --- a/app/actions/__tests__/requestgroups.test.js +++ b/app/actions/__tests__/requestgroups.test.js @@ -3,9 +3,6 @@ jest.unmock('../global'); jest.unmock('../../constants/global'); jest.unmock('../../constants/actionTypes'); jest.unmock('../../validators/requestGroup'); -jest.unmock('jsonschema'); -jest.unmock('redux-thunk'); -jest.unmock('redux-mock-store'); describe('RequestGroup Actions', () => { it('should add valid group', () => { diff --git a/app/actions/__tests__/requests.test.js b/app/actions/__tests__/requests.test.js index 4539f0fde..5591ddcbf 100644 --- a/app/actions/__tests__/requests.test.js +++ b/app/actions/__tests__/requests.test.js @@ -5,9 +5,6 @@ jest.unmock('../../constants/actionTypes'); jest.unmock('../../validators/request'); jest.unmock('../../reducers/requests'); jest.unmock('../../reducers/global'); -jest.unmock('jsonschema'); -jest.unmock('redux-thunk'); -jest.unmock('redux-mock-store'); // Jest seems to barf when this isn't here jest.unmock('request'); diff --git a/app/actions/requests.js b/app/actions/requests.js index 2b05dd1aa..68a00d69c 100644 --- a/app/actions/requests.js +++ b/app/actions/requests.js @@ -1,6 +1,6 @@ import * as types from '../constants/actionTypes' import * as methods from '../constants/global' -import makeRequest from '../lib/request.electron' +import makeRequest from '../lib/request' import {loadStart, loadStop} from './global' import {showModal} from './modals' import {REQUEST_RENAME} from '../constants/modals' @@ -93,7 +93,7 @@ export function sendRequest (request) { if (err) { console.error(err); } - + dispatch(setResponse(request.id, response)); dispatch(loadStop()); }); diff --git a/app/components/RequestBodyEditor.js b/app/components/RequestBodyEditor.js index 7c18f083f..3a049cb7b 100644 --- a/app/components/RequestBodyEditor.js +++ b/app/components/RequestBodyEditor.js @@ -8,7 +8,9 @@ class RequestBodyEditor extends Component { render () { const {request, onChange, className} = this.props; - const mode = request.contentType || 'application/json'; + // console.log(request); + // const mode = request.contentType || 'application/json'; + const mode = 'application/json'; return (
-

+