-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove core from dependencies (#592)
* feat: remove core from dependencies * chore: dir test * chore: apply suggestions
- Loading branch information
1 parent
2e8a285
commit f4dc06d
Showing
5 changed files
with
53 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2024, salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
import { SinonStub, stub } from 'sinon'; | ||
import { expect } from 'chai'; | ||
import { DIR } from '../../src/service/gitRepoUtils'; | ||
import * as os from 'os'; | ||
import * as path from 'path'; | ||
|
||
describe('DIR', () => { | ||
let homedirStub: SinonStub; | ||
beforeEach(() => { | ||
homedirStub = stub(os, 'homedir'); | ||
}); | ||
it('should return DIR', () => { | ||
const homedir = '/Users/johndoe'; | ||
homedirStub.returns(homedir); | ||
const sfdxStateFolder = '.sfdx'; | ||
const dir = DIR(); | ||
expect(dir).to.eql(path.join(homedir, sfdxStateFolder)); | ||
}); | ||
}); |
Oops, something went wrong.