mirror of https://github.com/buster-so/buster.git
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:
parent
3a43e21718
commit
4a97f2f0c5
|
@ -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'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue