Skip to content

Commit bd6d2ec

Browse files
authored
test: remove redundant mock that's does nothing due to function being shortcircuited (#1359)
1 parent 431c2a0 commit bd6d2ec

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/test-cases/include-project-file-ref/integration.include-project-file-ref.test.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {WriteStreamsMock} from "../../../src/write-streams";
22
import {handler} from "../../../src/handler";
33
import chalk from "chalk";
4-
import {initBashSpy, initSpawnSpy} from "../../mocks/utils.mock";
4+
import {initSpawnSpy} from "../../mocks/utils.mock";
55
import {WhenStatics} from "../../mocks/when-statics";
66
import fs from "fs-extra";
77

@@ -12,12 +12,6 @@ test("include-project-file-ref <deploy-job>", async () => {
1212
cmdArgs: ["git", "remote", "get-url", "origin"],
1313
returnValue: {stdout: "[email protected]:gcl/test-hest.git"},
1414
};
15-
const target = ".gitlab-ci-local/includes/gitlab.com/firecow/gitlab-ci-local-includes/HEAD/";
16-
const spyGitArchive = {
17-
cmd: `git archive --remote=ssh://[email protected]:22/firecow/gitlab-ci-local-includes.git HEAD .gitlab-module.yml | tar -f - -xC ${target}`,
18-
returnValue: {output: ""},
19-
};
20-
initBashSpy([spyGitArchive]);
2115
initSpawnSpy([...WhenStatics.all, spyGitRemote]);
2216
const mock = "tests/test-cases/include-project-file-ref/mock-gitlab-module.yml";
2317
const mockTarget = "tests/test-cases/include-project-file-ref/.gitlab-ci-local/includes/gitlab.com/firecow/gitlab-ci-local-includes/HEAD/.gitlab-module.yml";

0 commit comments

Comments
 (0)