about summary refs log tree commit diff
path: root/kittybox-rs/companion-lite/main.js
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-05-23 08:54:42 +0300
committerVika <vika@fireburn.ru>2022-05-23 08:54:42 +0300
commit84f9508813ac368bdce302db7f3a15bc6fce3fee (patch)
treedadab1c11dd954c6fcfac4952b19ed2160e65ae2 /kittybox-rs/companion-lite/main.js
parent6c1ebd115fff3e4dcda7c051ca71ccfec90342ec (diff)
downloadkittybox-84f9508813ac368bdce302db7f3a15bc6fce3fee.tar.zst
templates: introduce unit tests
These unit tests generate a random MF2-JSON post, convert it to
MF2-HTML using the template and then read it back using the
`microformats` crate.

The only problem is that it has a nasty bug with overstuffing implied
properties. This is being worked on:
https://gitlab.com/maxburon/microformats-parser/-/issues/7

For now the tests marked as ignored because they fail. But the
function itself that generates them should remain here for
documentation and potential code sharing with the `microformats`
crate, potentially even migrating to a subcrate there.
Diffstat (limited to 'kittybox-rs/companion-lite/main.js')
0 files changed, 0 insertions, 0 deletions