From ae0feff3534670e5e80a04f18d1b6ebefd3fe8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Thu, 11 Apr 2019 09:17:02 +0200 Subject: [PATCH] Fix test --- scm-ui/src/repos/branches/modules/branches.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scm-ui/src/repos/branches/modules/branches.test.js b/scm-ui/src/repos/branches/modules/branches.test.js index ef28a981c8..e708cb4993 100644 --- a/scm-ui/src/repos/branches/modules/branches.test.js +++ b/scm-ui/src/repos/branches/modules/branches.test.js @@ -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", () => {