This commit is contained in:
Eduard Heimbuch
2020-01-20 15:26:00 +01:00
parent f44d17d640
commit 85f638b25d

View File

@@ -430,7 +430,7 @@ describe("repos fetch", () => {
};
const store = mockStore({});
return store.dispatch(createRepo(URL, slartiFjords, callback)).then(() => {
return store.dispatch(createRepo(URL, slartiFjords, false, callback)).then(() => {
expect(callMe).toBe("yeah");
});
});
@@ -441,7 +441,7 @@ describe("repos fetch", () => {
});
const store = mockStore({});
return store.dispatch(createRepo(URL, slartiFjords)).then(() => {
return store.dispatch(createRepo(URL, slartiFjords, false)).then(() => {
const actions = store.getActions();
expect(actions[0].type).toEqual(CREATE_REPO_PENDING);
expect(actions[1].type).toEqual(CREATE_REPO_FAILURE);