This commit is contained in:
2024-10-28 15:01:17 +01:00
parent cea96e170d
commit 1e081c83e5
9 changed files with 101 additions and 5 deletions

View File

@@ -47,6 +47,16 @@ describe("Article", () => {
});
});
describe("#tags", () => {
it("returns a flattened tag list", () => {
expect(article.tags).toEqual([
"lightning",
"lightning network",
"howto",
]);
});
});
describe("#publishedAt", () => {
it("returns the value of the first 'published_at' tag", () => {
expect(article.publishedAt).toEqual(1726402055);