Skip to content

Commit 2393a37

Browse files
committed
fixup snapshots
1 parent 79a7d51 commit 2393a37

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

browser-extension/src/entrypoints/background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface Draft {
2424
stats: DraftStats
2525
}
2626
export interface CommentTableRow {
27-
spot: CommentSpot,
27+
spot: CommentSpot
2828
latestDraft: Draft
2929
isOpenTab: boolean
3030
isSent: boolean

browser-extension/src/lib/enhancers/github/githubIssueNewComment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class GitHubIssueNewCommentEnhancer implements CommentEnhancer<GitHubIssu
5757
return (
5858
<>
5959
<span>New Issue</span>
60-
<span className='font-mono text-sm text-muted-foreground' > {slug} </span>
60+
<span className='font-mono text-sm text-muted-foreground'> {slug} </span>
6161
</>
6262
)
6363
}

browser-extension/src/lib/enhancers/github/githubPRNewComment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class GitHubPRNewCommentEnhancer implements CommentEnhancer<GitHubPRNewCo
6262
return (
6363
<>
6464
<span>New PR</span>
65-
<span className='font-mono text-sm text-muted-foreground' > {slug} </span>
65+
<span className='font-mono text-sm text-muted-foreground'> {slug} </span>
6666
</>
6767
)
6868
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('github', () => {
2323
}
2424
`)
2525
expect(enhancedTextarea?.enhancer.tableRow(enhancedTextarea.spot)).toMatchInlineSnapshot(`
26-
<span>
26+
<React.Fragment>
2727
<span
2828
className="font-mono text-sm text-muted-foreground"
2929
>
@@ -35,7 +35,7 @@ describe('github', () => {
3535
PR #
3636
517
3737
</span>
38-
</span>
38+
</React.Fragment>
3939
`)
4040
})
4141
usingHar('gh_new_pr').it('should create the correct spot object', async () => {

browser-extension/tests/playground/claude.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ import {
1717
} from 'lucide-react'
1818
import { useMemo, useState } from 'react'
1919
import { twMerge } from 'tailwind-merge'
20-
import {
21-
generateMockDrafts,
22-
RedditSpot
23-
} from './replicaData'
2420
import type { CommentTableRow } from '@/entrypoints/background'
25-
import { CommentSpot } from '@/lib/enhancer'
26-
import { GitHubIssueAddCommentSpot } from '@/lib/enhancers/github/githubIssueAddComment'
21+
import type { CommentSpot } from '@/lib/enhancer'
22+
import type { GitHubIssueAddCommentSpot } from '@/lib/enhancers/github/githubIssueAddComment'
23+
import { generateMockDrafts, type RedditSpot } from './replicaData'
2724

2825
interface FilterState {
2926
sentFilter: 'both' | 'sent' | 'unsent'

browser-extension/tests/playground/replicaData.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { CommentSpot } from '@/lib/enhancer'
21
import type { CommentTableRow } from '@/entrypoints/background'
2+
import type { CommentSpot } from '@/lib/enhancer'
33
import type { GitHubIssueAddCommentSpot } from '@/lib/enhancers/github/githubIssueAddComment'
44
import type { GitHubPRAddCommentSpot } from '@/lib/enhancers/github/githubPRAddComment'
55

0 commit comments

Comments
 (0)