Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[connectivity] migrate unit tests to null safety #3645

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions packages/connectivity/connectivity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.1

* Migrate tests to null safety.

## 3.0.0

* Migrate to null safety.
Expand Down
2 changes: 1 addition & 1 deletion packages/connectivity/connectivity/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: connectivity
description: Flutter plugin for discovering the state of the network (WiFi &
mobile/cellular) connectivity on Android and iOS.
homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity
version: 3.0.0
version: 3.0.1

flutter:
plugin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// TODO(cyanglaz): Remove once Mockito is migrated to null safety.
// @dart = 2.9
import 'package:connectivity/connectivity.dart';
import 'package:connectivity_platform_interface/connectivity_platform_interface.dart';
import 'package:flutter_test/flutter_test.dart';
Expand All @@ -18,8 +16,8 @@ const LocationAuthorizationStatus kGetLocationResult =

void main() {
group('Connectivity', () {
Connectivity connectivity;
MockConnectivityPlatform fakePlatform;
late Connectivity connectivity;
late MockConnectivityPlatform fakePlatform;
setUp(() async {
fakePlatform = MockConnectivityPlatform();
ConnectivityPlatform.instance = fakePlatform;
Expand Down