fix(test): do not prompt filename change

This commit is contained in:
Andelf
2022-11-29 11:55:06 +08:00
parent d63afd3a04
commit 7b7c766260
4 changed files with 17 additions and 1 deletions

View File

@@ -369,6 +369,7 @@
(fn []
(let [filename-format (state/get-filename-format repo)]
(when (and (util/electron?)
(not (util/ci?))
(not (config/demo-graph?))
(not= filename-format :triple-lowbar))
(state/pub-event! [:ui/notify-outdated-filename-format []]))))

View File

@@ -113,6 +113,11 @@
[]
(when (electron?) (. js/window -__MOCKED_OPEN_DIR_PATH__))))
#?(:cljs
(defn ci?
[]
(boolean (. js/window -__E2E_TESTING__))))
#?(:cljs
(do
(def nfs? (and (not (electron?))