mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
test: add url launcher test
This commit is contained in:
parent
b4aceec346
commit
fe524736ec
@ -0,0 +1,22 @@
|
||||
import 'package:appflowy_editor/src/extensions/url_launcher_extension.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
// test('safeLaunchUrl with scheme', () async {
|
||||
// const href = 'https://github.com/AppFlowy-IO';
|
||||
// final result = await safeLaunchUrl(href);
|
||||
// expect(result, true);
|
||||
// });
|
||||
|
||||
// test('safeLaunchUrl without scheme', () async {
|
||||
// const href = 'github.com/AppFlowy-IO';
|
||||
// final result = await safeLaunchUrl(href);
|
||||
// expect(result, true);
|
||||
// });
|
||||
|
||||
test('safeLaunchUrl without scheme', () async {
|
||||
const href = null;
|
||||
final result = await safeLaunchUrl(href);
|
||||
expect(result, false);
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user