mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 23:04:41 +00:00
fix(coding-agent): fix git-update test using unparseable git source
The test used 'github.com/test/extension' as the git source, but parseGitUrl() requires a 'git:' prefix for bare hostnames. Changed to 'git:github.com/test/extension' so the source is correctly parsed as a git type and update() actually runs.
This commit is contained in:
parent
21141e0040
commit
316c2afe38
1 changed files with 4 additions and 2 deletions
|
|
@ -53,8 +53,10 @@ describe("DefaultPackageManager git update", () => {
|
||||||
let settingsManager: SettingsManager;
|
let settingsManager: SettingsManager;
|
||||||
let packageManager: DefaultPackageManager;
|
let packageManager: DefaultPackageManager;
|
||||||
|
|
||||||
// Git source that maps to our installed directory structure
|
// Git source that maps to our installed directory structure.
|
||||||
const gitSource = "github.com/test/extension";
|
// Must use "git:" prefix so parseSource() treats it as a git source
|
||||||
|
// (bare "github.com/..." is not recognized as a git URL).
|
||||||
|
const gitSource = "git:github.com/test/extension";
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
tempDir = join(tmpdir(), `git-update-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
tempDir = join(tmpdir(), `git-update-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue