feat(settings): surface GitHub connection needs_reauth/revoked

This commit is contained in:
Gabriel Brown
2026-07-11 14:49:28 -04:00
parent bce6769277
commit 75d7592cf3
4 changed files with 147 additions and 1 deletions
@@ -0,0 +1,18 @@
import { cleanup, render, screen } from '@testing-library/react';
import { afterEach, describe, expect, it } from 'vitest';
import { SpoonStatusBadge } from '../../src/components/spoons/spoon-status-badge';
afterEach(cleanup);
describe('SpoonStatusBadge', () => {
it('renders a dedicated "Rate limited" label for the rate_limited status', () => {
render(<SpoonStatusBadge status='rate_limited' />);
expect(screen.getByText('Rate limited')).toBeInTheDocument();
});
it('still humanizes unknown statuses via the fallback', () => {
render(<SpoonStatusBadge status={'some_future_state' as never} />);
expect(screen.getByText('some future state')).toBeInTheDocument();
});
});