Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
test: add url launcher test
Enzo Lizamafe524736ec51
diff --git a/frontend/app_flowy/packages/appflowy_editor/test/extensions/url_launcher_extension_test.dart b/frontend/app_flowy/packages/appflowy_editor/test/extensions/url_launcher_extension_test.dartnew file mode 100644index 0000000000..7c8761e5a9--- /dev/null+++ b/frontend/app_flowy/packages/appflowy_editor/test/extensions/url_launcher_extension_test.dart@@ -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);+ });+}