Skip to content

Commit d55f302

Browse files
committed
pretty
1 parent 7d3d7fd commit d55f302

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/inlay/structured/__tests__/reconcile.test.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { describe, it, expect } from 'vitest'
3-
import { render, screen, act } from '@testing-library/react'
3+
import { render, act } from '@testing-library/react'
44
import { StructuredInlay } from '../../structured/structured-inlay'
55
import { createRegexMatcher } from '../../internal/string-utils'
66

@@ -16,7 +16,13 @@ function plugin() {
1616

1717
return {
1818
matcher,
19-
render: ({ token, update }: { token: TData; update: (d: Partial<TData>) => void }) => {
19+
render: ({
20+
token,
21+
update
22+
}: {
23+
token: TData
24+
update: (d: Partial<TData>) => void
25+
}) => {
2026
updates.push(update)
2127
return <span data-testid="tok">{token.name ?? token.raw}</span>
2228
},
@@ -29,9 +35,15 @@ describe('StructuredInlay reconcile', () => {
2935
it('preserves token data across edits for duplicates via nearest-unused matching', async () => {
3036
const p = plugin()
3137

38+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3239
function Test({ value, onChange }: any) {
3340
return (
34-
<StructuredInlay value={value} onChange={onChange} plugins={[p] as any} />
41+
<StructuredInlay
42+
value={value}
43+
onChange={onChange}
44+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
45+
plugins={[p] as any}
46+
/>
3547
)
3648
}
3749

@@ -60,4 +72,4 @@ describe('StructuredInlay reconcile', () => {
6072
).map((n) => n.textContent)
6173
expect(labels).toContain('X')
6274
})
63-
})
75+
})

0 commit comments

Comments
 (0)