autogpt / frontend /test /json_code_snippet_view_test.dart
kakumusic's picture
Upload folder using huggingface_hub
b225a21 verified
raw
history blame
503 Bytes
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);
});
}