fix: update Slack handler tests to expect absolute URLs

Updated test expectations in apps/server/src/api/v2/slack/handler.test.ts
to expect absolute URLs with http://localhost:3000 prefix instead of
relative URLs, matching the actual behavior when BUSTER_URL is set.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
dal 2025-07-18 09:15:40 -06:00
parent 3a43e21718
commit 4a97f2f0c5
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@ describe('SlackHandler', () => {
await handler.handleOAuthCallback(mockContext);
expect(mockContext.redirect).toHaveBeenCalledWith(
'/app/settings/integrations?status=cancelled'
'http://localhost:3000/app/settings/integrations?status=cancelled'
);
});
@ -146,7 +146,7 @@ describe('SlackHandler', () => {
await handler.handleOAuthCallback(mockContext);
expect(mockContext.redirect).toHaveBeenCalledWith(
'/app/settings/integrations?status=error&error=invalid_parameters'
'http://localhost:3000/app/settings/integrations?status=error&error=invalid_parameters'
);
});
@ -171,7 +171,7 @@ describe('SlackHandler', () => {
state: 'test-state',
});
expect(mockContext.redirect).toHaveBeenCalledWith(
'/dashboard?status=success&workspace=Test%20Workspace'
'http://localhost:3000/dashboard?status=success&workspace=Test%20Workspace'
);
});
@ -191,7 +191,7 @@ describe('SlackHandler', () => {
await handler.handleOAuthCallback(mockContext);
expect(mockContext.redirect).toHaveBeenCalledWith(
'/app/settings/integrations?status=error&error=invalid_state'
'http://localhost:3000/app/settings/integrations?status=error&error=invalid_state'
);
});
});