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