Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sweep GHA Fix] Fix failing GitHub Actions and code issues #134

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Updated test/services/social_service_test.da
  • Loading branch information
sweep-ai[bot] committed Jan 27, 2024
commit 1ef15a295e8bb5cdc72b721243bbfdf3c8c07f8f
8 changes: 4 additions & 4 deletions test/services/social_service_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:http/http.dart' as http;
import 'package:mockito/mockito.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:traffic_report_front_flutter/services/social_service.dart';
import 'lib/services/social_service.dart';
import 'package:traffic_report_front_flutter/models/social_account.dart';

// Mock classes
Expand Down Expand Up @@ -49,7 +49,7 @@ void main() {
]),
200));

expect(await SocialService.getAvailableProviders(),
expect(await socialService.getAvailableProviders(),
isA<List<SocialProvider>>());
});

Expand All @@ -60,7 +60,7 @@ void main() {

SocialAccount account = SocialAccount(
provider: 'Facebook', uid: '123e4567-e89b-12d3-a456-426614174000');
expect(await SocialService.disconnectAccount(account), isTrue);
expect(await socialService.disconnectAccount(account), isTrue);
});

test(
Expand All @@ -71,7 +71,7 @@ void main() {
final mockUri = Uri.parse('https://example.com');
when(canLaunchUrl(mockUri)).thenAnswer((_) async => false);

expect(() async => await SocialService.connectWithProvider(provider),
expect(() async => await socialService.connectWithProvider(provider),
throwsA(isA<Exception>()));
});
});
Expand Down