summaryrefslogtreecommitdiff
path: root/src/background/settings-service.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/settings-service.js')
-rw-r--r--src/background/settings-service.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/background/settings-service.js b/src/background/settings-service.js
index 2687921..55d2a8f 100644
--- a/src/background/settings-service.js
+++ b/src/background/settings-service.js
@@ -79,4 +79,13 @@ export function watchSettings(browserApi) {
cache = sanitizeSettings(changes.settings.newValue);
}
});
+}
+
+/**
+ * Test-only: clear the module-level settings cache so each test starts from
+ * storage state instead of inheriting the previous test's cache.
+ * @visibleForTesting
+ */
+export function __resetCacheForTests() {
+ cache = null;
} \ No newline at end of file