Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit dce4830

Browse files
fix: correct test
1 parent 51b425d commit dce4830

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

tests/check-push.test.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ import { executeCommand } from "./test-utils";
44
describe("codiga git-push-hook", () => {
55
test("check for same SHAs", async () => {
66
// run the command
7-
await executeCommand([ACTION_GIT_PUSH_HOOK, "1234", "1234"]).then(
8-
(output) => {
9-
expect(output).toMatch(/Remote and local SHA are the same/);
10-
}
11-
);
7+
await executeCommand([
8+
ACTION_GIT_PUSH_HOOK,
9+
"--remote-sha",
10+
"1234",
11+
"--local-sha",
12+
"1234",
13+
]).then((output) => {
14+
expect(output).toMatch(/Remote and local SHA are the same/);
15+
});
1216
});
1317

1418
test("check for closest SHA", async () => {

0 commit comments

Comments
 (0)