import 'package:{{ language.params.packageName }}/src/response.dart';
{% if 'dart' in language.params.packageName %}
import 'package:test/test.dart';
{% else %}
import 'package:flutter_test/flutter_test.dart';
{% endif %}

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}');
    });
  });
}