Skip to content

Commit 9db7ec6

Browse files
committed
chore(tests): apply prettier formatting to concurrent-render.test.tsx
Fixes the sole remaining check flagged in @nrps9909's re-review of head 5fe5e27: `npx prettier --check tests/concurrent-render.test.tsx` was reporting the file needed formatting. Ran `prettier --write` locally; only whitespace changed and `npx prettier --check` is now clean. Full suite still 20 / 137 (+1 pre-existing skip).
1 parent 5fe5e27 commit 9db7ec6

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tests/concurrent-render.test.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,14 @@ describe('Trigger.ConcurrentRender (#622 review)', () => {
125125

126126
// Commit the initial state: closed, no throw. The committed target is
127127
// what all subsequent focus events must land on.
128-
const { container, rerender } = render(<Harness open={false} attempt={false} />);
128+
const { container, rerender } = render(
129+
<Harness open={false} attempt={false} />,
130+
);
129131
await flush();
130132

131-
const committedTarget = container.querySelector('.target') as HTMLSpanElement;
133+
const committedTarget = container.querySelector(
134+
'.target',
135+
) as HTMLSpanElement;
132136
expect(committedTarget).toBeTruthy();
133137

134138
// Attempt the transition: popupVisible=false → true, but the child
@@ -146,7 +150,9 @@ describe('Trigger.ConcurrentRender (#622 review)', () => {
146150
// The originally committed target must still be in the DOM; the
147151
// Suspense fallback should not have taken over because the transition
148152
// is pending.
149-
const stillCommitted = container.querySelector('.target') as HTMLSpanElement;
153+
const stillCommitted = container.querySelector(
154+
'.target',
155+
) as HTMLSpanElement;
150156
expect(stillCommitted).toBe(committedTarget);
151157
expect(container.querySelector('.fallback')).toBeNull();
152158

0 commit comments

Comments
 (0)