@@ -67,7 +67,6 @@ describe('GitHubHandler', () => {
6767
6868 // Also verify specific expected values
6969 expect ( enhancedTextarea ?. spot ) . toMatchObject ( {
70- commentId : undefined ,
7170 domain : 'github.com' ,
7271 number : 517 ,
7372 slug : 'diffplug/selfie' ,
@@ -76,32 +75,6 @@ describe('GitHubHandler', () => {
7675 } )
7776 } )
7877
79- it ( 'should handle multiple textareas on the same page' , ( ) => {
80- // Create a second textarea for inline code comments
81- const codeCommentTextarea = document . createElement ( 'textarea' )
82- codeCommentTextarea . className = 'form-control js-suggester-field'
83-
84- const inlineForm = document . createElement ( 'div' )
85- inlineForm . className = 'js-inline-comment-form'
86- inlineForm . appendChild ( codeCommentTextarea )
87- document . body . appendChild ( inlineForm )
88-
89- // Test both textareas
90- const mainCommentEnhanced = enhancers . tryToEnhance ( mockTextarea )
91- const codeCommentEnhanced = enhancers . tryToEnhance ( codeCommentTextarea )
92-
93- expect ( mainCommentEnhanced ?. spot . type ) . toBe ( 'GH_PR_ADD_COMMENT' )
94- expect ( codeCommentEnhanced ?. spot . type ) . toBe ( 'GH_PR_CODE_COMMENT' )
95-
96- // Register both
97- if ( mainCommentEnhanced ) enhancedTextareas . register ( mainCommentEnhanced )
98- if ( codeCommentEnhanced ) enhancedTextareas . register ( codeCommentEnhanced )
99-
100- // Verify both are registered
101- expect ( enhancedTextareas . get ( mockTextarea ) ) . toBeTruthy ( )
102- expect ( enhancedTextareas . get ( codeCommentTextarea ) ) . toBeTruthy ( )
103- } )
104-
10578 it ( 'should not enhance textarea on non-GitHub pages' , ( ) => {
10679 // Change location to non-GitHub site
10780 Object . defineProperty ( window , 'location' , {
0 commit comments