Skip to content

Commit 4e4a25f

Browse files
committed
More hideousness.
1 parent 9835f47 commit 4e4a25f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

browser-extension/tests/lib/enhancers/github.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import { beforeEach, describe, expect, it, vi } from 'vitest'
2-
import { EnhancerRegistry, TextareaRegistry } from '../../../src/lib/registries'
2+
import { EnhancerRegistry } from '../../../src/lib/registries'
33

44
// Mock WXT's defineContentScript global
55
vi.stubGlobal('defineContentScript', vi.fn())
66

77
describe('GitHubHandler', () => {
88
let enhancers: EnhancerRegistry
9-
let _enhancedTextareas: TextareaRegistry
109
let mockTextarea: HTMLTextAreaElement
1110

1211
beforeEach(() => {
1312
// Reset DOM and registries for each test
1413
document.body.innerHTML = ''
1514
enhancers = new EnhancerRegistry()
16-
_enhancedTextareas = new TextareaRegistry()
1715

1816
// Mock window.location for GitHub PR page
1917
Object.defineProperty(window, 'location', {
@@ -55,13 +53,10 @@ describe('GitHubHandler', () => {
5553
})
5654

5755
it('should create correct GitHubContext spot for PR comment', () => {
58-
const _enhancedTextarea = enhancers.tryToEnhance(mockTextarea)
59-
56+
// const _enhancedTextarea = enhancers.tryToEnhance(mockTextarea)
6057
// expect(enhancedTextarea).toBeTruthy()
61-
6258
// Snapshot test on the spot value
6359
// expect(enhancedTextarea?.spot).toMatchSnapshot('github-pr-517-spot')
64-
6560
// Also verify specific expected values
6661
// expect(enhancedTextarea?.spot).toMatchObject({
6762
// domain: 'github.com',

0 commit comments

Comments
 (0)