WIP Nostr links

This commit is contained in:
raucao committed 2024-10-25 12:47:13 +02:00
1 parent 6ec9f51d77
commit eadc40392a
9 files changed
+82 -23

No files matched your search

+7 -6
View File
@@ -58,12 +58,6 @@ describe("Article", () => {
});
});
describe("#html", () => {
it("returns a rendered HTML version of the 'content'", () => {
expect(article.html).toMatch(/<h2 id="the-solution">/);
});
});
describe("#naddr", () => {
it("returns a bech32 addressable event ID", () => {
expect(article.naddr).toMatch(
@@ -71,4 +65,11 @@ describe("Article", () => {
);
});
});
describe("#buildContentHtml", () => {
it("returns a rendered HTML version of the 'content'", async () => {
const html = await article.buildContentHtml();
expect(html).toMatch(/<h2 id="the-solution">/);
});
});
});