Skip to content

Commit

Permalink
test: adjust adapter e2e tests (#39182)
Browse files Browse the repository at this point in the history
* debug: adapter e2e tests

* Update netlify.mjs

* Update netlify.mjs

* Update netlify.mjs

* Update remote-file.cy.ts

* Update netlify.mjs
  • Loading branch information
pieh authored Dec 12, 2024
1 parent 761bb63 commit d54bde3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e-tests/adapters/cypress/e2e/remote-file.cy.ts
Original file line number Diff line number Diff line change
@@ -88,13 +88,15 @@ for (const config of configs) {
).to.be.equal(expectation.height)
}
if (expectedNaturalWidth) {
expect(Math.ceil(images[i].naturalWidth)).to.be.equal(
expectedNaturalWidth
expect(Math.ceil(images[i].naturalWidth)).to.be.closeTo(
expectedNaturalWidth,
1
)
}
if (expectedNaturalHeight) {
expect(Math.ceil(images[i].naturalHeight)).to.be.equal(
expectedNaturalHeight
expect(Math.ceil(images[i].naturalHeight)).to.be.closeTo(
expectedNaturalHeight,
1
)
}
}

0 comments on commit d54bde3

Please sign in to comment.