Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Jun 23, 2023
1 parent f5f937e commit 1ed5efb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions langchain/src/document_loaders/tests/cheerio.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ test("Test cheerio web scraper loader with selector", async () => {
});

test("Test cheerio web scraper loader with textDecoder", async () => {
const loader = new CheerioWebBaseLoader("https://corp.163.com/gb/about/management.html", {
textDecoder: new TextDecoder("gbk"),
});
const loader = new CheerioWebBaseLoader(
"https://corp.163.com/gb/about/management.html",
{
textDecoder: new TextDecoder("gbk"),
}
);

const doc = await loader.load();
expect(doc[0].pageContent.trim()).toEqual(
expect.stringContaining("网易")
);
expect(doc[0].pageContent.trim()).toEqual(expect.stringContaining("网易"));
});

0 comments on commit 1ed5efb

Please sign in to comment.