Showing the changes to apps/server/src/sourceControl/BitbucketSourceControlProvider.test.ts (1 of 103 files). Show all
Unified · Split
| @@ -149,20 +149,3 @@ it.effect("creates Bitbucket PRs through provider-neutral input names", () => · 148 unmodified lines | ||
| 149 | 149 | }); |
| 150 | 150 | }), |
| 151 | 151 | ); |
| 152 | − | |
| 153 | −it.effect("uses Bitbucket API repository detection for default branch lookup", () => | |
| 154 | − Effect.gen(function* () { | |
| 155 | − let cwdInput: string | null = null; | |
| 156 | − const provider = yield* makeProvider({ | |
| 157 | − getDefaultBranch: (input) => { | |
| 158 | − cwdInput = input.cwd; | |
| 159 | − return Effect.succeed("main"); | |
| 160 | − }, | |
| 161 | − }); | |
| 162 | − | |
| 163 | − const defaultBranch = yield* provider.getDefaultBranch({ cwd: "/repo" }); | |
| 164 | − | |
| 165 | − assert.strictEqual(defaultBranch, "main"); | |
| 166 | − assert.strictEqual(cwdInput, "/repo"); | |
| 167 | − }), | |
| 168 | −); | |