Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions src/__tests__/commands/terms.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ it('presents the selected agreement and requests human approval without acceptin
});

it('preserves refusal details and gives actionable guidance without retrying', async () => {
const fetch = vi
.fn()
.mockResolvedValue(
Response.json(
{
code: 'forbidden',
error: 'This endpoint is not enabled for this team.',
},
{ status: 403 }
)
);
const fetch = vi.fn().mockResolvedValue(
Response.json(
{
code: 'forbidden',
error: 'This endpoint is not enabled for this team.',
},
{ status: 403 }
)
);
vi.stubGlobal('fetch', fetch);
const result = await requestTerms('particle', {});
expect(result).toMatchObject({
Expand Down
Loading