mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
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:
@@ -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'));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user