Skip to content

Commit 32e4554

Browse files
authored
Fix nesting of Setup test (#3533)
1 parent ddd226a commit 32e4554

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

extension/src/test/suite/setup/index.test.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -869,21 +869,25 @@ suite('Setup Test Suite', () => {
869869

870870
expect(mockShow).to.be.calledWithMatch({ sectionCollapsed: undefined })
871871
}).timeout(WEBVIEW_TEST_TIMEOUT)
872-
})
873872

874-
it('should open the webview with the Studio section focus for dvc.showStudioSettings and dvc.showStudioConnect', async () => {
875-
const mockShowWebview = stub(Setup.prototype, 'showSetup').resolves(
876-
undefined
877-
)
873+
it('should open the webview with the Studio section focus for dvc.showStudioSettings and dvc.showStudioConnect', async () => {
874+
const mockShowWebview = stub(Setup.prototype, 'showSetup').resolves(
875+
undefined
876+
)
878877

879-
await commands.executeCommand(RegisteredCommands.SETUP_SHOW_STUDIO_CONNECT)
878+
await commands.executeCommand(
879+
RegisteredCommands.SETUP_SHOW_STUDIO_CONNECT
880+
)
880881

881-
expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO)
882+
expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO)
882883

883-
mockShowWebview.resetHistory()
884+
mockShowWebview.resetHistory()
884885

885-
await commands.executeCommand(RegisteredCommands.SETUP_SHOW_STUDIO_SETTINGS)
886+
await commands.executeCommand(
887+
RegisteredCommands.SETUP_SHOW_STUDIO_SETTINGS
888+
)
886889

887-
expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO)
890+
expect(mockShowWebview).to.be.calledWithExactly(SetupSection.STUDIO)
891+
})
888892
})
889893
})

0 commit comments

Comments
 (0)