Showing the changes to apps/server/src/sourceControl/GitLabSourceControlProvider.test.ts (1 of 42 files). Show all
Unified · Split
| @@ -8,8 +8,8 @@ import * as GitLabCli from "./GitLabCli.ts"; · 7 unmodified lines | |||
| 8 | import { parseGitLabAuthStatusHosts } from "./gitLabAuthStatus.ts"; | 8 | import { parseGitLabAuthStatusHosts } from "./gitLabAuthStatus.ts"; |
| 9 | import * as GitLabSourceControlProvider from "./GitLabSourceControlProvider.ts"; | 9 | import * as GitLabSourceControlProvider from "./GitLabSourceControlProvider.ts"; |
| 10 | 10 | ||
| 11 | function makeProvider(gitlab: Partial<GitLabCli.GitLabCliShape>) { | 11 | function makeProvider(gitlab: Partial<GitLabCli.GitLabCli["Service"]>) { |
| 12 | return GitLabSourceControlProvider.make().pipe( | 12 | return GitLabSourceControlProvider.make.pipe( |
| 13 | Effect.provide(Layer.mock(GitLabCli.GitLabCli)(gitlab)), | 13 | Effect.provide(Layer.mock(GitLabCli.GitLabCli)(gitlab)), |
| 14 | ); | 14 | ); |
| 15 | } | 15 | } |
| @@ -54,7 +54,7 @@ it.effect("maps GitLab MR summaries into provider-neutral change requests", () = · 38 unmodified lines | |||
| 54 | 54 | ||
| 55 | it.effect("lists GitLab MRs through provider-neutral input names", () => | 55 | it.effect("lists GitLab MRs through provider-neutral input names", () => |
| 56 | Effect.gen(function* () { | 56 | Effect.gen(function* () { |
| 57 | let listInput: Parameters<GitLabCli.GitLabCliShape["listMergeRequests"]>[0] | null = null; | 57 | let listInput: Parameters<GitLabCli.GitLabCli["Service"]["listMergeRequests"]>[0] | null = null; |
| 58 | const provider = yield* makeProvider({ | 58 | const provider = yield* makeProvider({ |
| 59 | listMergeRequests: (input) => { | 59 | listMergeRequests: (input) => { |
| 60 | listInput = input; | 60 | listInput = input; |
| @@ -80,7 +80,8 @@ it.effect("lists GitLab MRs through provider-neutral input names", () => · 19 unmodified lines | |||
| 80 | 80 | ||
| 81 | it.effect("creates GitLab MRs through provider-neutral input names", () => | 81 | it.effect("creates GitLab MRs through provider-neutral input names", () => |
| 82 | Effect.gen(function* () { | 82 | Effect.gen(function* () { |
| 83 | let createInput: Parameters<GitLabCli.GitLabCliShape["createMergeRequest"]>[0] | null = null; | 83 | let createInput: Parameters<GitLabCli.GitLabCli["Service"]["createMergeRequest"]>[0] | null = |
| 84 | null; | ||
| 84 | const provider = yield* makeProvider({ | 85 | const provider = yield* makeProvider({ |
| 85 | createMergeRequest: (input) => { | 86 | createMergeRequest: (input) => { |
| 86 | createInput = input; | 87 | createInput = input; |