Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo in apex_class_not_valid message #6020

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const messages = {
validate_eligibility: 'Validating eligibility.',
class_validation_failed: 'Failed to validate eligibility from %s',
validation_failed: 'Failed to validate eligibility.',
apex_class_not_valid: 'The Apex Class %s is not valid for Open AI document generation.',
apex_class_not_valid: 'The Apex Class %s is not valid for OpenAPI document generation.',
apex_action_created: 'Apex Action created for %s: %s.',
generate_openapi_document: 'Generating OpenAPI document.',
write_openapi_document_to_file: 'Writing OpenAPI document to file.',
Expand Down
2 changes: 1 addition & 1 deletion packages/salesforcedx-vscode-apex/src/messages/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const messages = {
validate_eligibility: 'Validating eligibility.',
class_validation_failed: 'Failed to validate eligibility from %s',
validation_failed: 'Failed to validate eligibility.',
apex_class_not_valid: 'The Apex Class %s is not valid for Open AI document generation.',
apex_class_not_valid: 'The Apex Class %s is not valid for OpenAPI document generation.',
apex_action_created: 'Apex Action created for %s: %s.',
generate_openapi_document: 'Generating OpenAPI document.',
write_openapi_document_to_file: 'Writing OpenAPI document to file.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('MetadataOrchestrator', () => {
const mockResponse: any = [{ isApexOasEligible: false, isEligible: false, resourceUri: '/hello/world.cls' }];
jest.spyOn(orchestrator, 'validateEligibility').mockResolvedValue(mockResponse);
await expect(orchestrator.validateMetadata(editorStub.document.uri)).rejects.toThrow(
'The Apex Class world is not valid for Open AI document generation.'
'The Apex Class world is not valid for OpenAPI document generation.'
);
});

Expand Down
Loading