mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-06 12:55:05 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
15 lines
503 B
Dart
15 lines
503 B
Dart
import 'package:auto_gpt_flutter_client/views/chat/json_code_snippet_view.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
const jsonString = '{"key": "value"}';
|
|
|
|
testWidgets('Renders JsonCodeSnippetView without crashing',
|
|
(WidgetTester tester) async {
|
|
await tester.pumpWidget(
|
|
const MaterialApp(home: JsonCodeSnippetView(jsonString: jsonString)));
|
|
expect(find.byType(JsonCodeSnippetView), findsOneWidget);
|
|
});
|
|
}
|