2022-10-04 22:40:15 -05:00
|
|
|
import 'package:appflowy_editor/src/extensions/url_launcher_extension.dart';
|
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
|
|
|
|
|
|
void main() {
|
2023-03-24 13:59:03 +01:00
|
|
|
test('safeLaunchUrl without href and scheme', () async {
|
2022-10-04 22:40:15 -05:00
|
|
|
const href = null;
|
2025-03-03 16:53:25 +08:00
|
|
|
final result = await editorLaunchUrl(href);
|
2022-10-04 22:40:15 -05:00
|
|
|
expect(result, false);
|
|
|
|
|
});
|
|
|
|
|
}
|