File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,20 @@ describe("getVisibleProviderOrLog", () => {
4646 vi . clearAllMocks ( )
4747 } )
4848
49- it ( "returns the visible provider if found" , ( ) => {
49+ it ( "returns the visible provider if found" , async ( ) => {
5050 const mockProvider = { } as ClineProvider
5151 ; ( ClineProvider . getVisibleInstance as Mock ) . mockReturnValue ( mockProvider )
5252
53- const result = getVisibleProviderOrLog ( mockOutputChannel )
53+ const result = await getVisibleProviderOrLog ( mockOutputChannel )
5454
5555 expect ( result ) . toBe ( mockProvider )
5656 expect ( mockOutputChannel . appendLine ) . not . toHaveBeenCalled ( )
5757 } )
5858
59- it ( "logs and returns undefined if no provider found" , ( ) => {
59+ it ( "logs and returns undefined if no provider found" , async ( ) => {
6060 ; ( ClineProvider . getVisibleInstance as Mock ) . mockReturnValue ( undefined )
6161
62- const result = getVisibleProviderOrLog ( mockOutputChannel )
62+ const result = await getVisibleProviderOrLog ( mockOutputChannel )
6363
6464 expect ( result ) . toBeUndefined ( )
6565 expect ( mockOutputChannel . appendLine ) . toHaveBeenCalledWith ( "Cannot find any visible Roo Code instances." )
You can’t perform that action at this time.
0 commit comments