0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
bluwy 2023-07-03 08:12:47 +00:00 committed by astrobot-houston
parent e644b34659
commit 94a1529587
3 changed files with 9 additions and 3 deletions

View file

@ -195,7 +195,9 @@ describe('SSG pictures with subpath - dev', function () {
const src = image.attr('src');
const [route, params] = src.split('?');
for (const srcset of picture.children('source').map((_, source) => source.attribs['srcset'])) {
for (const srcset of picture
.children('source')
.map((_, source) => source.attribs['srcset'])) {
for (const pictureSrc of srcset.split(',')) {
const pictureParams = pictureSrc.split('?')[1];

View file

@ -223,7 +223,9 @@ describe('SSR pictures with subpath - build', function () {
const src = image.attr('src');
const [route, params] = src.split('?');
for (const srcset of picture.children('source').map((_, source) => source.attribs['srcset'])) {
for (const srcset of picture
.children('source')
.map((_, source) => source.attribs['srcset'])) {
for (const pictureSrc of srcset.split(',')) {
const pictureParams = pictureSrc.split('?')[1];

View file

@ -127,7 +127,9 @@ describe('SSR pictures - dev', function () {
const src = image.attr('src');
const [route, params] = src.split('?');
for (const srcset of picture.children('source').map((_, source) => source.attribs['srcset'])) {
for (const srcset of picture
.children('source')
.map((_, source) => source.attribs['srcset'])) {
for (const pictureSrc of srcset.split(',')) {
const pictureParams = pictureSrc.split('?')[1];