Closed staltz closed 4 years ago
@staltz should we include an assertion to verify the sigil and the tag are properly appended to the id
?
"id": "@YSa2zbx07RNKQrrFX1vS5mFN+Pbnul61hd9GGymao1o=.ed25519"
^ ^^^^^^^^
@davegomez Yes, that can be done in a separate PR.
This is fantastic, thanks for using the code cov here.
(I deleted a comment from davegomez just now because it seemed like a mistake. The comment came from his email-to-GitHub interface, contained no message content (maybe he pressed something accidentally), but in the footer of the message there was an unsubscribe link with an auth token in the URL, that auth token is why I decided to delete the message to protect him from that data leaking publicly)
😮 indeed was a mistake and didn't notice. Thank you @staltz
Previously, public APIs
unboxKey
,unboxBody
,getTag
were untested, this PR adds some basic tests for those. Also,loadOrCreate
got more tests for various cases when it loads or when it creates.Code coverage before
Code coverage after
(Hint, only
index.js
coverage changed)