A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: disable loading announcements during tests
Abdullah Atta17928ba1820d
diff --git a/apps/web/src/stores/announcement-store.js b/apps/web/src/stores/announcement-store.jsindex 7b8695e92..0adf85632 100644--- a/apps/web/src/stores/announcement-store.js+++ b/apps/web/src/stores/announcement-store.js@@ -25,12 +25,15 @@ import { isUserPremium } from "../hooks/use-is-user-premium";import { SUBSCRIPTION_STATUS } from "../common/constants";import { appVersion } from "../utils/version";import { findItemAndDelete } from "@notesnook/core/utils/array";+import { isTesting } from "../utils/platform";class AnnouncementStore extends BaseStore {inlineAnnouncements = [];dialogAnnouncements = [];refresh = async () => {+ if (isTesting()) return;+try {const inlineAnnouncements = [];const dialogAnnouncements = [];