We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 931cf76 commit 31fea34Copy full SHA for 31fea34
__tests__/index.spec.ts
@@ -31,6 +31,14 @@ describe(`#getLinkPreview()`, () => {
31
expect(linkInfo.charset?.toLowerCase()).toEqual(`utf-8`);
32
});
33
34
+ it("should extract author from news article", async () => {
35
+ const linkInfo: any = await getLinkPreview(
36
+ `https://www.usatoday.com/story/special/contributor-content/2025/10/15/why-chaos-engineering-is-more-important-than-ever-in-the-ai-era/86712877007/`
37
+ );
38
+
39
+ expect(linkInfo.author).toEqual(`Matt Emma`);
40
+ })
41
42
it(`should extract link info from a URL with a newline`, async () => {
43
const linkInfo: any = await getLinkPreview(
44
`
0 commit comments