We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0a4056 commit d10f57bCopy full SHA for d10f57b
test/internet_connection_test.dart
@@ -122,6 +122,14 @@ void main() {
122
test('returns true when all URIs are reachable', () async {
123
final checker = InternetConnection.createInstance(
124
enableStrictCheck: true,
125
+ customCheckOptions: [
126
+ InternetCheckOption(uri: Uri.parse('https://one.one.one.one')),
127
+ InternetCheckOption(uri: Uri.parse('https://icanhazip.com/')),
128
+ InternetCheckOption(
129
+ uri: Uri.parse('https://pokeapi.co/api/v2/ability/?limit=1'),
130
+ ),
131
+ ],
132
+ useDefaultOptions: false,
133
);
134
expect(await checker.hasInternetAccess, true);
135
});
0 commit comments