Skip to content

Commit

Permalink
fix: tests and formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed Feb 28, 2023
1 parent a7d1544 commit 7c3b7a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 88 deletions.
17 changes: 0 additions & 17 deletions lib/presentation/profile/profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:ionicons/ionicons.dart';
import 'package:share_plus/share_plus.dart';

import '../../application/user/profile/profile_bloc.dart';
Expand Down Expand Up @@ -153,21 +152,6 @@ class _UserProfilePageState extends State<UserProfilePage> {
),
),
),
// Positioned(
// bottom: 0,
// left: 0,
// child: FloatingActionButton(
// onPressed: () {
// BlocProvider.of<ProfileBloc>(context)
// .add(CancelEditProfilePic());

// _image = null;
// },
// backgroundColor: kErrorColor,
// mini: true,
// child: const Icon(Icons.close),
// ),
// ),
]
],
),
Expand Down Expand Up @@ -209,7 +193,6 @@ class _UserProfilePageState extends State<UserProfilePage> {
onPressed: () {
if (state.isBioEditing == true) {
/// TODO: Implement save profile image
BlocProvider.of<ProfileBloc>(context).add(
SaveBio(
bio: bioController.text,
Expand Down
69 changes: 0 additions & 69 deletions test/application/user/profile/profile_bloc_test.dart

This file was deleted.

4 changes: 2 additions & 2 deletions test/presentation/profile/profile_screen_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ void main() {

expect(find.byType(UserProfilePage), findsOneWidget);

profileBloc.add(EditProfile());
profileBloc.add(EditBio());
await tester.pumpAndSettle();

expect(profileBloc.state.isEditing, true);
expect(profileBloc.state.isBioEditing, true);
});
}

0 comments on commit 7c3b7a6

Please sign in to comment.