Skip to content

Commit

Permalink
just to make sure that metadata.title works on text
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsideguide committed Feb 22, 2024
1 parent f893235 commit 623e660
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/__tests__/providers/Text/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ describe("Text Data Connector", () => {
},
{
content: "Violets are yellow",
source: "https://example3.com",
source: "https://example3.com",
metadata: {
title: 'Violets'
}
},
]
});
Expand All @@ -82,6 +85,7 @@ describe("Text Data Connector", () => {
expect(documents[2].content).toBe("Violets are yellow");
expect(documents[2].provider).toBe("text");
expect(documents[2].metadata.sourceURL).toBe("https://example3.com");
expect(documents[2].metadata.title).toBe("Violets");
});

test("Text Get Documents", async () => {
Expand Down

0 comments on commit 623e660

Please sign in to comment.