@@ -292,22 +292,6 @@ describe("GhostInlineCompletionProvider", () => {
292292 expect ( result ) . toEqual ( [ ] )
293293 } )
294294
295- it ( "should return empty array after suggestions are cleared" , ( ) => {
296- const suggestions = new GhostSuggestionsState ( )
297- suggestions . setFillInAtCursor ( {
298- text : "test content" ,
299- prefix : "const x = 1" ,
300- suffix : "\nconst y = 2" ,
301- } )
302- provider . updateSuggestions ( suggestions )
303-
304- // Clear suggestions
305- provider . updateSuggestions ( null )
306-
307- const result = provider . provideInlineCompletionItems ( mockDocument , mockPosition , mockContext , mockToken )
308- expect ( result ) . toEqual ( [ ] )
309- } )
310-
311295 it ( "should update suggestions when called multiple times" , ( ) => {
312296 const suggestions1 = new GhostSuggestionsState ( )
313297 suggestions1 . setFillInAtCursor ( {
@@ -745,21 +729,6 @@ describe("GhostInlineCompletionProvider", () => {
745729 } )
746730
747731 describe ( "updateSuggestions" , ( ) => {
748- it ( "should accept null to clear suggestions" , ( ) => {
749- const suggestions = new GhostSuggestionsState ( )
750- suggestions . setFillInAtCursor ( {
751- text : "test" ,
752- prefix : "const x = 1" ,
753- suffix : "\nconst y = 2" ,
754- } )
755- provider . updateSuggestions ( suggestions )
756-
757- provider . updateSuggestions ( null )
758-
759- const result = provider . provideInlineCompletionItems ( mockDocument , mockPosition , mockContext , mockToken )
760- expect ( result ) . toEqual ( [ ] )
761- } )
762-
763732 it ( "should accept new suggestions state" , ( ) => {
764733 const suggestions = new GhostSuggestionsState ( )
765734 suggestions . setFillInAtCursor ( {
0 commit comments