blob: 3177b66ea48acfbf78b2797961f7c9492f2543fc [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(cyanglaz): Remove once https://github.com/flutter/plugins/pull/3158 is landed.
// @dart = 2.9
import 'package:integration_test/integration_test.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:connectivity/connectivity.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
group('Connectivity test driver', () {
Connectivity _connectivity;
setUpAll(() async {
_connectivity = Connectivity();
});
testWidgets('test connectivity result', (WidgetTester tester) async {
final ConnectivityResult result = await _connectivity.checkConnectivity();
expect(result, isNotNull);
});
});
}