Skip to content

Commit

Permalink
Fixed web tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwin authored and Darwin committed Aug 24, 2024
1 parent 6693f4c commit 890a1e8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions facebook_auth_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 6.1.0
- Migrate to package:web.
- environment:
Use dart sdk: '>=3.3.0 <4.0.0'
Use flutter: ">=3.19.2"


### 6.0.0
- Updated flutter_facebook_auth_platform_interface: ^6.0.0

Expand Down
2 changes: 1 addition & 1 deletion facebook_auth_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_facebook_auth_web
description: web support for flutter_facebook_auth
version: 6.0.0
version: 6.1.0
homepage: https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth_web


Expand Down
3 changes: 0 additions & 3 deletions facebook_auth_web/test/web_auth_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:flutter_facebook_auth_web/flutter_facebook_auth_web.dart';

import 'package:flutter_test/flutter_test.dart';
import 'mock/mock_data.dart';
import 'mock/mock_interop.dart';

/// create a new instance of FacebookAuthPlugin with Mock Data
FlutterFacebookAuthPlugin getPlugin() => FlutterFacebookAuthPlugin();
Expand All @@ -22,7 +21,6 @@ void main() {
});

test('is initialized', () async {
fbMock = FbMock();
final plugin = getPlugin();
await plugin.webAndDesktopInitialize(
appId: '1234',
Expand All @@ -40,7 +38,6 @@ void main() {
late bool isLogged = false;
setUp(
() {
fbMock = FbMock();
js.context['FB']['init'] = js.allowInterop((js.JsObject options) {});
js.context['FB']['login'] = js.allowInterop((js.JsFunction fn, _) {
isLogged = true;
Expand Down

0 comments on commit 890a1e8

Please sign in to comment.