mirrored_repositories/Ai-Assistant-In-Flutter-Using-ChatGpt/appwrite/test
import 'package:appwrite/src/response.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  group('toString()', () {
    test('with a string', () {
      final response = Response(data: 'string');

      expect(response.toString(), 'string');
    });

    test('with a map', () {
      final response = Response(data: {'x': 1});

      expect(response.toString(), '{"x":1}');
    });
  });
}