Skip to content

Commit

Permalink
chore(getCrumb): fix crumb test and comment out tests for old flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Apr 17, 2024
1 parent db0151c commit 5a6a6c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/getCrumb.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ describe("getCrumb", () => {
).rejects.toThrowError(/No set-cookie/);
});

/*
test for commented out code.
it("throws on no context", async () => {
const fetch = await env.fetchDevel();
Expand Down Expand Up @@ -127,6 +129,7 @@ describe("getCrumb", () => {
)
).rejects.toThrowError(/Could not find crumb/);
});
*/

it("redirect https://guce.yahoo.com/consent?brandType=nonEu", async () => {
// consoleRestore();
Expand All @@ -141,7 +144,7 @@ describe("getCrumb", () => {
"getCrumb-quote-AAPL-pre-consent-VPN-UK.json",
true
);
expect(crumb).toBe("Ky3Po5TGQRZ");
expect(crumb).toBe("mloUP8q7ZPH");
// consoleSilent();
});
});
Expand Down

0 comments on commit 5a6a6c8

Please sign in to comment.