Skip to content

Commit

Permalink
test: remove redundant mock that's does nothing due to function being…
Browse files Browse the repository at this point in the history
… shortcircuited (#1359)
  • Loading branch information
ANGkeith authored Oct 3, 2024
1 parent 431c2a0 commit bd6d2ec
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {WriteStreamsMock} from "../../../src/write-streams";
import {handler} from "../../../src/handler";
import chalk from "chalk";
import {initBashSpy, initSpawnSpy} from "../../mocks/utils.mock";
import {initSpawnSpy} from "../../mocks/utils.mock";
import {WhenStatics} from "../../mocks/when-statics";
import fs from "fs-extra";

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

0 comments on commit bd6d2ec

Please sign in to comment.