Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void main() {
expect(result, isNotNull);
switch (result) {
case ConnectivityResult.wifi:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

expect(_connectivity.getWifiName(), completes);
expect(_connectivity.getWifiBSSID(), completes);
expect((await _connectivity.getWifiIP()), isNotNull);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ void main() {
expect(result, isNotNull);
switch (result) {
case ConnectivityResult.wifi:
// ignore: deprecated_member_use
expect(_connectivity.getWifiName(), completes);
// ignore: deprecated_member_use
expect(_connectivity.getWifiBSSID(), completes);
// ignore: deprecated_member_use
expect((await _connectivity.getWifiIP()), isNotNull);
break;
default:
Expand All @@ -33,6 +36,7 @@ void main() {

testWidgets('test location methods, iOS only', (WidgetTester tester) async {
if (Platform.isIOS) {
// ignore: deprecated_member_use
expect((await _connectivity.getLocationServiceAuthorization()),
LocationAuthorizationStatus.notDetermined);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,33 @@ void main() {
});

test('getWifiName', () async {
// ignore: deprecated_member_use
String result = await connectivity.getWifiName();
expect(result, kWifiNameResult);
});

test('getWifiBSSID', () async {
// ignore: deprecated_member_use
String result = await connectivity.getWifiBSSID();
expect(result, kWifiBSSIDResult);
});

test('getWifiIP', () async {
// ignore: deprecated_member_use
String result = await connectivity.getWifiIP();
expect(result, kWifiIpAddressResult);
});

test('requestLocationServiceAuthorization', () async {
LocationAuthorizationStatus result =
// ignore: deprecated_member_use
await connectivity.requestLocationServiceAuthorization();
expect(result, kRequestLocationResult);
});

test('getLocationServiceAuthorization', () async {
LocationAuthorizationStatus result =
// ignore: deprecated_member_use
await connectivity.getLocationServiceAuthorization();
expect(result, kRequestLocationResult);
});
Expand Down