diff options
| author | eltrac <hi@eltr.ac> | 2026-09-15 18:16:44 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-09-16 11:21:04 +0800 |
| commit | af8ac86e5bae4569c25f3b52c7c051a60bb425c9 (patch) | |
| tree | 5ecf89538ffe6ee7d2e8c919d908ff5daab6fc83 /test | |
| parent | d54b08ee4139de3bf373b21be5e662970e18e586 (diff) | |
wrapper, storage, mf: add spec check and improve project structure
wrapper: use spec to check webmention data before writing to storage
warn when data does not meet spec (corrupted). for now we're not dealing
with corruption, just collect logs and analyze.
microformats: use spec to validate data and warn if it's in bad form
microformats: move parsers/wrappers to one sub-directory
storage: move weepinbell.spec to weepinbell.storage.spec
Diffstat (limited to 'test')
| -rw-r--r-- | test/weepinbell/storage_test.clj | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/weepinbell/storage_test.clj b/test/weepinbell/storage_test.clj index 4182fd2..625cd07 100644 --- a/test/weepinbell/storage_test.clj +++ b/test/weepinbell/storage_test.clj @@ -3,10 +3,10 @@ [weepinbell.storage.edn-storage :as edns]
[clojure.spec.alpha :as s]
[weepinbell.utils]
- [weepinbell.spec]))
+ [weepinbell.storage.spec]))
(deftest edn-storage-conformity-test
(testing "edn-storage should conform storage spec."
(with-redefs [weepinbell.utils/file-exists? (fn [_] true)]
- (is (s/valid? :weepinbell.spec/storage
+ (is (s/valid? :weepinbell.storage.spec/vtable
(edns/use-store "source.edn"))))))
|
