mirrored_repositories/dipantau-desktop/test/feature/presentation/bloc
import 'package:dipantau_desktop_client/feature/presentation/bloc/tracking/tracking_bloc.dart';
import 'package:flutter_test/flutter_test.dart';

void main() {
  group('FailureTrackingState', () {
    final tState = FailureTrackingState(errorMessage: 'testErrorMessage');

    test(
      'pastikan output dari fungsi toString',
      () async {
        // assert
        expect(
          tState.toString(),
          'FailureTrackingState{errorMessage: ${tState.errorMessage}}',
        );
      },
    );
  });

  group('SuccessCreateTimeTrackingState', () {
    final tState = SuccessCreateTimeTrackingState(
      files: ['1', '2'],
      trackEntityId: 1,
    );

    test(
      'pastikan output dari fungsi toString',
      () async {
        // assert
        expect(
          tState.toString(),
          'SuccessCreateTimeTrackingState{files: ${tState.files}, trackEntityId: ${tState.trackEntityId}}',
        );
      },
    );
  });

  group('SuccessDeleteTrackUserTrackingState', () {
    final tState = SuccessDeleteTrackUserTrackingState(trackId: 1);

    test(
      'pastikan output dari fungsi toString',
      () async {
        // assert
        expect(
          tState.toString(),
          'SuccessDeleteTrackUserTrackingState{trackId: ${tState.trackId}}',
        );
      },
    );
  });
}
