Skip to content

Commit

Permalink
Add test to verify GCM has been bundled correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed May 28, 2024
1 parent 3edf00e commit 1914620
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/fast/gcm-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { GitProcess } from '../../lib'
import { gitCredentialManagerVersion } from '../helpers'

describe('git-credential-manager', () => {
it('matches the expected version', async () => {
const result = await GitProcess.exec(
['credential-manager', '--version'],
process.cwd()
)
expect(result.exitCode).toBe(0)
expect(result.stdout).toContain(`git-lfs/${gitCredentialManagerVersion} `)
})
})
1 change: 1 addition & 0 deletions test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { GitProcess, IGitResult, GitError } from '../lib'
export const gitVersion = '2.43.4'
export const gitForWindowsVersion = '2.43.4.windows.1'
export const gitLfsVersion = '3.5.1'
export const gitCredentialManagerVersion = '2.5.0'

const temp = require('temp').track()

Expand Down

0 comments on commit 1914620

Please sign in to comment.