From 7a57173486aa431d58a3d92910163463024b230b Mon Sep 17 00:00:00 2001 From: "Breno A." Date: Thu, 16 May 2024 00:39:03 -0300 Subject: [PATCH] tests: add git local scope --- __tests__/main.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index 25190df..d65919c 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -55,8 +55,8 @@ test("run should warn when no files are found", () => { test("pushChanges should commit and push changes successfully", async () => { pushChanges(gitMock, inputParams, "Test commit message"); expect(gitMock.addConfig).toHaveBeenCalledTimes(2); - expect(gitMock.addConfig).toHaveBeenNthCalledWith(1, "user.name", inputParams.userName); - expect(gitMock.addConfig).toHaveBeenNthCalledWith(2, "user.email", inputParams.userEmail); + expect(gitMock.addConfig).toHaveBeenNthCalledWith(1, "user.name", inputParams.userName, undefined, "local"); + expect(gitMock.addConfig).toHaveBeenNthCalledWith(2, "user.email", inputParams.userEmail, undefined, "local"); expect(gitMock.commit).toHaveBeenCalledWith("Test commit message"); expect(gitMock.push).toHaveBeenCalled(); });