fix: use correct conan path
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user