fix: use correct conan path

This commit is contained in:
2024-11-05 23:33:46 +13:00
parent 1e28f77086
commit f1b10b13b9
6 changed files with 36 additions and 4 deletions

View File

@@ -48,3 +48,15 @@ describe('getConanPlatform', () => {
expect(util.getConanPlatform()).toBe('linux')
})
})
describe('getConanBinPath', () => {
it('should return an empty string for Windows', () => {
Object.defineProperty(process, 'platform', { value: 'win32' })
expect(util.getConanBinPath()).toBe('')
})
it('should return "/bin" for non-Windows platforms', () => {
Object.defineProperty(process, 'platform', { value: 'linux' })
expect(util.getConanBinPath()).toBe('/bin')
})
})