fixed failing reducer test

This commit is contained in:
Sebastian Sdorra
2018-09-28 08:14:37 +02:00
parent 2b7453fc57
commit 9606a8af29

View File

@@ -13,7 +13,8 @@ import {
getFetchSourcesFailure,
isFetchSourcesPending,
default as reducer,
getSources
getSources,
fetchSourcesSuccess
} from "./sources";
const sourcesUrl =
@@ -128,9 +129,11 @@ describe("reducer tests", () => {
it("should store the collection", () => {
const expectedState = {
"scm/core": repository
"scm/core": collection
};
expect(reducer({}, fetchSources(repository))).toEqual(expectedState);
expect(reducer({}, fetchSourcesSuccess(repository, collection))).toEqual(
expectedState
);
});
});