Browse Source

chore: update unit tests for companion 0.1.3

Alvin Unreal 2 months ago
parent
commit
9229174121
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/companion/updater.test.ts

+ 9 - 4
src/companion/updater.test.ts

@@ -66,8 +66,8 @@ describe('companion updater', () => {
     writeFileSync(
       `${bin}.json`,
       JSON.stringify({
-        version: '0.1.2',
-        tag: 'companion-v0.1.2',
+        version: '0.1.3',
+        tag: 'companion-v0.1.3',
         target: getCompanionTarget(),
         installedAt: new Date().toISOString(),
         archiveName: 'archive.tar.gz',
@@ -81,7 +81,7 @@ describe('companion updater', () => {
     expect(result).toMatchObject({
       status: 'current',
       binaryPath: bin,
-      version: '0.1.2',
+      version: '0.1.3',
     });
   });
 
@@ -94,7 +94,7 @@ describe('companion updater', () => {
     expect(result).toMatchObject({
       status: 'installed',
       binaryPath: getCompanionBinaryPath(),
-      version: '0.1.2',
+      version: '0.1.3',
     });
   });
 
@@ -108,6 +108,11 @@ describe('companion updater', () => {
 
     const result = await ensureCompanionVersion({
       config: { enabled: true },
+      manifest: {
+        version: '0.1.2',
+        tag: 'companion-v0.1.2',
+        repo: 'alvinunreal/oh-my-opencode-slim',
+      },
     });
 
     expect(result).toMatchObject({ status: 'current', version: '0.1.2' });