Skip to content

Commit

Permalink
test: await file snapshot assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Dec 23, 2024
1 parent 1e70ed6 commit 0e20cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/e2e/no-ssr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('browser (ssr: false)', () => {

const sources = await Promise.all(images.map(el => el.evaluate(e => e.getAttribute('src'))))

expect({
await expect({
sources,
requests: requests
.map(r => r.replace(url('/'), '/')).filter(r => r !== providerPath && !r.match(/\.(js|css)/))
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/ssr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('browser (ssr: true)', () => {

const sources = await Promise.all(images.map(el => el.evaluate(e => e.getAttribute('src'))))

expect({
await expect({
sources,
requests: requests
.map(r => r.replace(url('/'), '/')).filter(r => r !== providerPath && !r.match(/\.(js|css)/))
Expand Down

0 comments on commit 0e20cce

Please sign in to comment.