mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
fixed failing reducer test
This commit is contained in:
@@ -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
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user