content: import 'package:blooms/features/highlight/domain/highlight_content.dart';
  import 'package:blooms/features/highlight/domain/highlight_period.dart';
  import 'package:blooms/features/highlight/domain/highlight_state.dart';
  import 'package:cloud_firestore/cloud_firestore.dart';
  import 'package:flutter_test/flutter_test.dart';
  
  void main() {
    group('fromJson', () {
      test('summary', () {
        final now = Timestamp.now();
  
        final json = {
          'type': 'summary',
          'startAt': now,
          'period': 'past21days',
          'summary': 'summary',
          'abstract': 'abstract',
          'state': 'inProgress',
          'promptFileUri': 'promptFileUri',
        };
  
        final expected = HighlightContent.fromJson(json);
  
        expect(
          expected,
          HighlightContent.summary(
            startAt: now,
            period: HighlightPeriod.past21days,
            summary: 'summary',
            abstract: 'abstract',
            state: HighlightState.inProgress,
            promptFileUri: 'promptFileUri',
          ),
        );
      });
  
      test('不明なStyleはHighlightContentEmptyになること', () {
        final json = {'style': 'unknown', 'aaa': 'bbb'};
  
        final expected = HighlightContent.fromJson(json);
  
        expect(expected, const HighlightContent.empty());
      });
    });
  }
  