Skip to content

Commit

Permalink
rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankatliarchuk committed Oct 1, 2022
1 parent 3367329 commit 15c00e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ci_source/providers/_tests/_gitlab.test.ts
Expand Up @@ -34,12 +34,12 @@ describe(".pullRequestID", () => {
})

describe(".repoSlug", () => {
it("derives it from the PR Url", () => {
it("derives it 'CI_PROJECT_PATH' env var", () => {
const result = new GitLabCI(correctEnv)
expect(result.repoSlug).toEqual("gitlab-org/gitlab-foss")
})

it("derives it form forked PR Url", () => {
it("derives it form 'CI_MERGE_REQUEST_PROJECT_PATH' env var if set", () => {
correctEnv["CI_MERGE_REQUEST_PROJECT_PATH"] = "gitlab-org/release-tools"
const result = new GitLabCI(correctEnv)
expect(result.repoSlug).toEqual("gitlab-org/release-tools")
Expand Down

0 comments on commit 15c00e0

Please sign in to comment.