Skip to content

Commit

Permalink
fixup! TF-3034 Prevent duplicate draft warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora committed Oct 3, 2024
1 parent 3beb93a commit cc86da4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 6 additions & 6 deletions core/lib/utils/platform_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ abstract class PlatformInfo {
static bool isTestingForWeb = false;

static bool get isWeb => kIsWeb || isTestingForWeb;
static bool get isLinux => !kIsWeb && defaultTargetPlatform == TargetPlatform.linux;
static bool get isWindows => !kIsWeb && defaultTargetPlatform == TargetPlatform.windows;
static bool get isMacOS => !kIsWeb && defaultTargetPlatform == TargetPlatform.macOS;
static bool get isFuchsia => !kIsWeb && defaultTargetPlatform == TargetPlatform.fuchsia;
static bool get isIOS => !kIsWeb && defaultTargetPlatform == TargetPlatform.iOS;
static bool get isAndroid => !kIsWeb && defaultTargetPlatform == TargetPlatform.android;
static bool get isLinux => !isWeb && defaultTargetPlatform == TargetPlatform.linux;
static bool get isWindows => !isWeb && defaultTargetPlatform == TargetPlatform.windows;
static bool get isMacOS => !isWeb && defaultTargetPlatform == TargetPlatform.macOS;
static bool get isFuchsia => !isWeb && defaultTargetPlatform == TargetPlatform.fuchsia;
static bool get isIOS => !isWeb && defaultTargetPlatform == TargetPlatform.iOS;
static bool get isAndroid => !isWeb && defaultTargetPlatform == TargetPlatform.android;
static bool get isMobile => isAndroid || isIOS;
static bool get isDesktop => isLinux || isWindows || isMacOS;
static bool get isCanvasKit => isRendererCanvasKit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void main() {
final mockRichTextWebController = MockRichTextWebController();

// Declaration misc dependencies
final mockHtmlEditorApi = MockHtmlEditorApi();
late MockHtmlEditorApi mockHtmlEditorApi;

setUp(() {
Get.testMode = true;
Expand Down Expand Up @@ -269,6 +269,8 @@ void main() {
mockCreateNewAndSendEmailInteractor,
mockCreateNewAndSaveEmailToDraftsInteractor
);

mockHtmlEditorApi = MockHtmlEditorApi();
});

tearDown(() {
Expand Down

0 comments on commit cc86da4

Please sign in to comment.