From 9600942ba5e1e74a4b65732390e459e8f8c85f3e Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Thu, 23 Mar 2023 06:19:15 +1100 Subject: [PATCH] Fix nesting of Setup test --- extension/src/test/suite/setup/index.test.ts | 24 ++++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/extension/src/test/suite/setup/index.test.ts b/extension/src/test/suite/setup/index.test.ts index b9b3ff0207..ca9a3a215c 100644 --- a/extension/src/test/suite/setup/index.test.ts +++ b/extension/src/test/suite/setup/index.test.ts @@ -869,21 +869,25 @@ suite('Setup Test Suite', () => { expect(mockShow).to.be.calledWithMatch({ sectionCollapsed: undefined }) }).timeout(WEBVIEW_TEST_TIMEOUT) - }) - it('should open the webview with the Studio section focus for dvc.showStudioSettings and dvc.showStudioConnect', async () => { - const mockShowWebview = stub(Setup.prototype, 'showSetup').resolves( - undefined - ) + it('should open the webview with the Studio section focus for dvc.showStudioSettings and dvc.showStudioConnect', async () => { + const mockShowWebview = stub(Setup.prototype, 'showSetup').resolves( + undefined + ) - await commands.executeCommand(RegisteredCommands.SETUP_SHOW_STUDIO_CONNECT) + await commands.executeCommand( + RegisteredCommands.SETUP_SHOW_STUDIO_CONNECT + ) - expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO) + expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO) - mockShowWebview.resetHistory() + mockShowWebview.resetHistory() - await commands.executeCommand(RegisteredCommands.SETUP_SHOW_STUDIO_SETTINGS) + await commands.executeCommand( + RegisteredCommands.SETUP_SHOW_STUDIO_SETTINGS + ) - expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO) + expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO) + }) }) })