This commit is contained in:
René Pfeuffer
2019-04-11 09:17:02 +02:00
parent 727fd08b3b
commit ae0feff353

View File

@@ -415,19 +415,19 @@ describe("branches", () => {
it("should return true if create branch is pending", () => {
const state = {
pending: {
[CREATE_BRANCH]: true
[CREATE_BRANCH + "/foo/bar"]: true
}
};
expect(isCreateBranchPending(state)).toBe(true);
expect(isCreateBranchPending(state, repository)).toBe(true);
});
it("should return false if create branch is not pending", () => {
const state = {
pending: {
[CREATE_BRANCH]: false
[CREATE_BRANCH + "/foo/bar"]: false
}
};
expect(isCreateBranchPending(state)).toBe(false);
expect(isCreateBranchPending(state, repository)).toBe(false);
});
it("should return error when create branch did fail", () => {