Skip to content

Commit 76c89ef

Browse files
committed
Fix frontend formatting for ready checks
1 parent 92116ba commit 76c89ef

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

frontend/src/__tests__/App.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,9 @@ describe('App', () => {
522522
await screen.findByText('URL not allowed for this account');
523523
expect(mockClearToken).not.toHaveBeenCalled();
524524
expect(screen.queryByText('Add access token')).not.toBeInTheDocument();
525-
expect(screen.queryByText('Access token was rejected. Paste a valid token to continue.')).not.toBeInTheDocument();
525+
expect(
526+
screen.queryByText('Access token was rejected. Paste a valid token to continue.')
527+
).not.toBeInTheDocument();
526528
expect(screen.queryByRole('button', { name: /Try .* instead/ })).not.toBeInTheDocument();
527529
});
528530

frontend/src/components/App.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ export function App() {
117117
);
118118
};
119119

120-
const isActionableStrategySwitch = (
121-
message: string,
122-
currentStrategy: string,
123-
retryStrategy: string
124-
) => {
120+
const isActionableStrategySwitch = (message: string, currentStrategy: string, retryStrategy: string) => {
125121
if (currentStrategy !== 'faraday' || retryStrategy !== 'browserless') return false;
126122

127123
const normalized = message.toLowerCase();

0 commit comments

Comments
 (0)