Skip to content

Commit 281369b

Browse files
committed
style: fix formatting in ConfirmEvalNameDialog tests
Applied Biome formatter to collapse multi-line statements.
1 parent 4ff99c9 commit 281369b

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

src/app/src/pages/eval/components/ConfirmEvalNameDialog.test.tsx

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ describe('ConfirmEvalNameDialog', () => {
8383
/>,
8484
);
8585
expect(screen.getByText(/This evaluation has 25,000 results/)).toBeInTheDocument();
86-
expect(
87-
screen.getByText(/This operation may take up to a minute./),
88-
).toBeInTheDocument();
86+
expect(screen.getByText(/This operation may take up to a minute./)).toBeInTheDocument();
8987
});
9088

9189
it('shows warning alert for very large operations (>50K)', () => {
@@ -117,11 +115,7 @@ describe('ConfirmEvalNameDialog', () => {
117115

118116
it('does not show warning when showSizeWarning is false', () => {
119117
render(
120-
<ConfirmEvalNameDialog
121-
{...defaultProps}
122-
showSizeWarning={false}
123-
itemCount={100000}
124-
/>,
118+
<ConfirmEvalNameDialog {...defaultProps} showSizeWarning={false} itemCount={100000} />,
125119
);
126120
expect(screen.queryByText(/This evaluation has/)).not.toBeInTheDocument();
127121
});
@@ -186,9 +180,7 @@ describe('ConfirmEvalNameDialog', () => {
186180
);
187181
// Should show info alert, not warning
188182
expect(screen.getByText(/This evaluation has 50,000 results/)).toBeInTheDocument();
189-
expect(
190-
screen.getByText(/This operation may take up to a minute./),
191-
).toBeInTheDocument();
183+
expect(screen.getByText(/This operation may take up to a minute./)).toBeInTheDocument();
192184
});
193185

194186
it('handles itemCount of exactly 50001', () => {
@@ -202,9 +194,7 @@ describe('ConfirmEvalNameDialog', () => {
202194
);
203195
// Should show warning alert
204196
expect(screen.getByText(/This evaluation has 50,001 results/)).toBeInTheDocument();
205-
expect(
206-
screen.getByText(/This operation may take several minutes./),
207-
).toBeInTheDocument();
197+
expect(screen.getByText(/This operation may take several minutes./)).toBeInTheDocument();
208198
});
209199
});
210200

@@ -225,13 +215,7 @@ describe('ConfirmEvalNameDialog', () => {
225215
});
226216

227217
it('uses default itemLabel when not provided', () => {
228-
render(
229-
<ConfirmEvalNameDialog
230-
{...defaultProps}
231-
showSizeWarning={true}
232-
itemCount={25000}
233-
/>,
234-
);
218+
render(<ConfirmEvalNameDialog {...defaultProps} showSizeWarning={true} itemCount={25000} />);
235219
expect(screen.getByText(/items/)).toBeInTheDocument();
236220
});
237221
});

0 commit comments

Comments
 (0)