From 0e8e1a6e2c336f9f7e5060e2d1ba8f464ca838cf Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Mon, 21 Aug 2023 11:52:00 +0800 Subject: [PATCH] Delete test functions that do not have corresponding function entities. --- test/contributes/commandsBase.test.ts | 30 --------------------------- 1 file changed, 30 deletions(-) diff --git a/test/contributes/commandsBase.test.ts b/test/contributes/commandsBase.test.ts index 083f8d0..a90b3af 100644 --- a/test/contributes/commandsBase.test.ts +++ b/test/contributes/commandsBase.test.ts @@ -51,34 +51,4 @@ describe('commandsBase', () => { expect(result).to.be.false; }); }); - - describe('getPipxEnvironmentPath', () => { - afterEach(() => { - sinon.restore(); - }); - - it('should return the pipx environment path if found', () => { - sinon.stub(commonUtil, 'runCommand').callsFake((command: string) => { - if (command === 'python3 -m pipx environment') { - return 'PIPX_BIN_DIR=/path/to/bin'; - } - return ''; - }); - - const result = commandsBase.getPipxEnvironmentPath("python3"); - expect(result).to.equal('/path/to/bin'); - }); - - it('should return null if pipx environment path is not found', () => { - sinon.stub(commonUtil, 'runCommand').callsFake((command: string) => { - if (command === 'python3 -m pipx environment') { - return 'No pipx environment found'; - } - return ''; - }); - - const result = commandsBase.getPipxEnvironmentPath("python3"); - expect(result).to.be.null; - }); - }); }); \ No newline at end of file