Просмотр исходного кода

Add test for custom.js to export_test.cljs

Fixed missing thing
Candide U 2 лет назад
Родитель
Сommit
3b08b9a7e5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      deps/publishing/test/logseq/publishing/export_test.cljs

+ 1 - 1
deps/publishing/test/logseq/publishing/export_test.cljs

@@ -73,7 +73,7 @@
          (let [original-paths (map path/basename (get-files-recursively "tmp/static"))
          (let [original-paths (map path/basename (get-files-recursively "tmp/static"))
                copied-paths (map path/basename (get-files-recursively "tmp/published-graph"))
                copied-paths (map path/basename (get-files-recursively "tmp/published-graph"))
                new-files (set/difference (set copied-paths) (set original-paths))]
                new-files (set/difference (set copied-paths) (set original-paths))]
-           (is (= #{"index.html" "custom.css" "export.css"}
+           (is (= #{"index.html" "custom.css" "export.css" "custom.js"}
                   new-files)
                   new-files)
                "A published graph has the correct new files")
                "A published graph has the correct new files")
            (is (= "<div>WOOT</div>"
            (is (= "<div>WOOT</div>"