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

Commit 4155c43

Browse files
author
Chris Yang
authored
migrate tests to null safety (#3645)
1 parent a0fe222 commit 4155c43

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/connectivity/connectivity/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.1
2+
3+
* Migrate tests to null safety.
4+
15
## 3.0.0
26

37
* Migrate to null safety.

packages/connectivity/connectivity/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: connectivity
22
description: Flutter plugin for discovering the state of the network (WiFi &
33
mobile/cellular) connectivity on Android and iOS.
44
homepage: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity
5-
version: 3.0.0
5+
version: 3.0.1
66

77
flutter:
88
plugin:

packages/connectivity/connectivity/test/connectivity_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

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

1917
void main() {
2018
group('Connectivity', () {
21-
Connectivity connectivity;
22-
MockConnectivityPlatform fakePlatform;
19+
late Connectivity connectivity;
20+
late MockConnectivityPlatform fakePlatform;
2321
setUp(() async {
2422
fakePlatform = MockConnectivityPlatform();
2523
ConnectivityPlatform.instance = fakePlatform;

0 commit comments

Comments
 (0)