summaryrefslogtreecommitdiff
path: root/packages/integrations/image/test/rotation.test.js
diff options
context:
space:
mode:
authorGravatar Tony Sullivan <tony.f.sullivan@outlook.com> 2022-09-08 18:41:17 +0000
committerGravatar GitHub <noreply@github.com> 2022-09-08 18:41:17 +0000
commit4c05c65a3df5bae935afebc8a15ff52d5b912d8b (patch)
treead47565ca4d5bfa55e9a4c30923ad1b59637dea0 /packages/integrations/image/test/rotation.test.js
parentce48931aad9a12b3d05c23b0a86cae255e9439f3 (diff)
downloadastro-4c05c65a3df5bae935afebc8a15ff52d5b912d8b.tar.gz
astro-4c05c65a3df5bae935afebc8a15ff52d5b912d8b.tar.zst
astro-4c05c65a3df5bae935afebc8a15ff52d5b912d8b.zip
[@astrojs/image] Build all optimized images to dist/assets (#4678)
* fix: build all optimized images to dist/assets * chore: add changeset
Diffstat (limited to 'packages/integrations/image/test/rotation.test.js')
-rw-r--r--packages/integrations/image/test/rotation.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/image/test/rotation.test.js b/packages/integrations/image/test/rotation.test.js
index 06f74d1c2..49fe198b1 100644
--- a/packages/integrations/image/test/rotation.test.js
+++ b/packages/integrations/image/test/rotation.test.js
@@ -32,7 +32,7 @@ describe('Image rotation', function () {
it('Landscape images', () => {
for (let i = 0; i < 9; i++) {
const image = $(`#landscape-${i}`);
- const regex = new RegExp(`\^/Landscape_${i}.\\w{8}_\\w{4,10}.jpg`);
+ const regex = new RegExp(`\^/assets\/Landscape_${i}.\\w{8}_\\w{4,10}.jpg`);
expect(image.attr('src')).to.match(regex);
expect(image.attr('width')).to.equal('1800');
@@ -49,7 +49,7 @@ describe('Image rotation', function () {
it('Portait images', () => {
for (let i = 0; i < 9; i++) {
const image = $(`#portrait-${i}`);
- const regex = new RegExp(`\^/Portrait_${i}.\\w{8}_\\w{4,10}.jpg`);
+ const regex = new RegExp(`\^/assets\/Portrait_${i}.\\w{8}_\\w{4,10}.jpg`);
expect(image.attr('src')).to.match(regex);
expect(image.attr('width')).to.equal('1200');