fix: correct spelling of "explnation" to "explanation" across multiple files

- Updated comments and JSON keys in various prompt files to replace "explnation" with "explanation".
- Adjusted the response structure in services and tests to ensure consistency with the updated key.
- Ensured all related tests reflect the corrected key for accurate validation.
This commit is contained in:
Udhay-Adithya
2025-09-27 18:54:28 +05:30
parent 9d5518e9df
commit 3ba416796d
17 changed files with 76 additions and 76 deletions

View File

@@ -49,7 +49,7 @@ void main() {
test('buildOperationPicker returns import action', () {
final picker = OpenApiImportService.buildOperationPicker(spec);
expect(picker['explnation'], contains('OpenAPI parsed'));
expect(picker['explanation'], contains('OpenAPI parsed'));
final actions = (picker['actions'] as List);
expect(actions.length, 1);
expect(actions.first['action'], 'import_now_openapi');
@@ -201,7 +201,7 @@ void main() {
final spec = OpenApiImportService.tryParseSpec(_extendedSpecJson)!;
final picker = OpenApiImportService.buildOperationPicker(spec,
insights: 'Some insights');
expect(picker['explnation'], contains('Some insights'));
expect(picker['explanation'], contains('Some insights'));
});
test('buildOperationPicker zero endpoints branch', () {
@@ -210,7 +210,7 @@ void main() {
final spec = OpenApiImportService.tryParseSpec(emptySpecJson)!;
final picker = OpenApiImportService.buildOperationPicker(spec);
expect(picker['actions'], isEmpty);
expect(picker['explnation'], contains('No operations'));
expect(picker['explanation'], contains('No operations'));
});
});
}