This pull request introduces a comprehensive suite of unit tests for hover.ts within the VS Code platform hover functionality. The tests aim to cover various functionalities provided by the WorkbenchHoverDelegate class, ensuring that it behaves as expected under different configurations and interactions.
Summary
Added unit tests for WorkbenchHoverDelegate in hover.test.ts.
Tests include initialization checks, delay configuration, hover display and hide functionalities, instant hover time limit adjustments, and error handling for disabled instant hover.
Utilizes chai for assertions, and ts-mockito for mocking dependencies such as IConfigurationService and IHoverService.
Ensures that hover elements show and hide correctly based on user actions and configuration settings.
Validates the correct handling of escape key presses to hide the hover element.
Checks the configuration service for delay values and applies them accordingly.
Verifies the functionality to update internal state, like lastHoverHideTime, upon hiding the hover.
Ensures error throwing when attempting to set an instant hover time limit while instant hover is disabled.
The tests are located in src/vs/platform/hover/browser/hover.test.ts.
Fixes #4.
š Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request introduces a comprehensive suite of unit tests for
hover.ts
within the VS Code platform hover functionality. The tests aim to cover various functionalities provided by theWorkbenchHoverDelegate
class, ensuring that it behaves as expected under different configurations and interactions.Summary
WorkbenchHoverDelegate
inhover.test.ts
.chai
for assertions, andts-mockito
for mocking dependencies such asIConfigurationService
andIHoverService
.lastHoverHideTime
, upon hiding the hover.src/vs/platform/hover/browser/hover.test.ts
.Fixes #4.
š Latest improvements to Sweep:
š” To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.