Skip to content

Commit

Permalink
Update tests to reflect volume change
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Aug 24, 2024
1 parent b198ec7 commit 59c3b8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/worker/jobs/scrapeAstorWines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test("simple", async ({ axiosMock }) => {

await fn;

expect(items.length).toBe(12);
expect(items.length).toMatchInlineSnapshot(`12`);
expect(items[0]).toMatchInlineSnapshot(`
{
"currency": "usd",
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/worker/jobs/scrapeHealthySpirits.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test("simple", async ({ axiosMock }) => {

await fn;

expect(items.length).toBe(5);
expect(items.length).toMatchInlineSnapshot(`4`);
expect(items[0]).toMatchInlineSnapshot(`
{
"currency": "usd",
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/worker/jobs/scrapeReserveBar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test("simple", async ({ axiosMock }) => {

await fn;

expect(items.length).toMatchInlineSnapshot(`24`);
expect(items.length).toMatchInlineSnapshot(`23`);
expect(items[0]).toMatchInlineSnapshot(`
{
"currency": "usd",
Expand Down
8 changes: 4 additions & 4 deletions apps/server/src/worker/jobs/scrapeTotalWine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ test("simple", async ({ axiosMock }) => {

await fn;

expect(items.length).toBe(112);
expect(items.length).toMatchInlineSnapshot(`104`);
expect(items[0]).toMatchInlineSnapshot(`
{
"currency": "usd",
"name": "Grangestone Bourbon Cask Finish Single Malt Scotch Whisky",
"price": 6499,
"url": "https://www.totalwine.com/spirits/scotch/single-malt/grangestone-bourbon-cask-finish-single-malt-scotch-whisky/p/135113175?s=1203&igrules=true",
"volume": 1750,
"price": 3299,
"url": "https://www.totalwine.com/spirits/deals/scotch/single-malt/grangestone-bourbon-cask-finish-single-malt-scotch-whisky/p/135113750?s=1203&igrules=true",
"volume": 750,
}
`);
});

0 comments on commit 59c3b8d

Please sign in to comment.