Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsideguide committed Mar 5, 2024
2 parents b509808 + ee9f793 commit d985a50
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/__tests__/providers/Video/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ describe("VideoDataProvider", () => {
expect(documents.length).toBe(1);
expect(documents[0].content).not.toBe(null);
expect(documents[0].content.length).toBeGreaterThan(0);
expect(documents).toEqual([
{
content:
"Miss Green, I am afraid your case just got a lot more complicated than expected. So, does this mean I will not get the loan? I thought you are the most qualified advisor. I didn't say that. I will do my best to obtain a loan for you, but it might take a little longer.",
metadata: { sourceURL: optionsURLs.urls[0] },
provider: "video",
type: "video",
},
]);
expect(documents[0].content).toMatch(
/Miss Green, I am afraid your case just got a lot more complicated than expected. So, does this mean I will not get the loan\? I thought you (are|were) the most qualified advisor. I didn't say that. I will do my best to obtain a loan for you, but it might take a little longer./
);
expect(documents[0].metadata).toEqual({ sourceURL: optionsURLs.urls[0] });
expect(documents[0].provider).toBe("video");
expect(documents[0].type).toBe("video");
});
});

0 comments on commit d985a50

Please sign in to comment.