WIP Nostr links

This commit is contained in:
2024-10-25 01:10:15 +02:00
parent 6ec9f51d77
commit eadc40392a
9 changed files with 82 additions and 23 deletions

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">/);
});
});
});