Skip to content

Commit

Permalink
fixed requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aalanders authored and mmmaaatttttt committed Oct 18, 2017
1 parent 0a4d932 commit e5d7e36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions src/__tests__/actions/actionCreators.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import configureMockStore from "redux-mock-store";
import thunk from "redux-thunk";
import * as actions from "../../store/actions/actionCreators";
//import * as types from "../../store/actions/constants";
import * as api from "../../services/api";
import MockAdapter from "axios-mock-adapter";
import axios from "axios";
Expand All @@ -16,20 +15,9 @@ import {
} from "../../store/actions/constants";

const mock = new MockAdapter(axios);

const middlewares = [thunk];
const mockStore = configureMockStore(middlewares);

const mockResponse = (status, statusText, response) => {
return new window.Response(response, {
status: status,
statusText: statusText,
headers: {
"Content-type": "application/json"
}
});
};

describe("async actions/api calls", () => {
afterAll(() => {
mock.restore();
Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/reducers/rootReducer.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import rootReducer from "../../store/reducers/rootReducer";
import * as types from "../../store/actions/constants";
//import actionCreators?

describe("root reducer", () => {
it("should return the initial state", () => {
Expand Down Expand Up @@ -33,6 +32,7 @@ describe("root reducer", () => {
screenCount: null
});
});

it("should handle confirm user", () => {
expect(
rootReducer(
Expand All @@ -54,6 +54,7 @@ describe("root reducer", () => {
screenCount: null
});
});

it("should handle confirm screens and urls success", () => {
expect(
rootReducer(
Expand Down
1 change: 0 additions & 1 deletion src/store/actions/actionCreators.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export function getScreensAndURLsSuccess(assessment) {
}

export function getScreensAndURLsFail(err) {
console.log(err);
return {
type: CONFIRM_SCREENSANDURLS_FAIL,
err
Expand Down

0 comments on commit e5d7e36

Please sign in to comment.