[ci] format
This commit is contained in:
parent
db70afdcd5
commit
c080438b89
3 changed files with 7 additions and 6 deletions
|
@ -41,7 +41,7 @@ export function propsToFilename(transform: TransformOptions) {
|
||||||
const ext = extname(filename);
|
const ext = extname(filename);
|
||||||
filename = removeExtname(filename);
|
filename = removeExtname(filename);
|
||||||
|
|
||||||
const outputExt = transform.format ? `.${transform.format}` : ext
|
const outputExt = transform.format ? `.${transform.format}` : ext;
|
||||||
|
|
||||||
return `/${filename}_${shorthash(JSON.stringify(transform))}${outputExt}`;
|
return `/${filename}_${shorthash(JSON.stringify(transform))}${outputExt}`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,8 +57,8 @@ describe('SSG images - dev', function () {
|
||||||
query: {
|
query: {
|
||||||
w: '200',
|
w: '200',
|
||||||
h: '300',
|
h: '300',
|
||||||
href: 'https://picsum.photos/200/300'
|
href: 'https://picsum.photos/200/300',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Public images',
|
title: 'Public images',
|
||||||
|
@ -138,8 +138,8 @@ describe('SSG images with subpath - dev', function () {
|
||||||
query: {
|
query: {
|
||||||
w: '200',
|
w: '200',
|
||||||
h: '300',
|
h: '300',
|
||||||
href: 'https://picsum.photos/200/300'
|
href: 'https://picsum.photos/200/300',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Public images',
|
title: 'Public images',
|
||||||
|
|
|
@ -173,7 +173,8 @@ describe('SSR pictures with subpath - dev', function () {
|
||||||
},
|
},
|
||||||
contentType: 'image/jpeg',
|
contentType: 'image/jpeg',
|
||||||
alt: 'ipsum',
|
alt: 'ipsum',
|
||||||
},,
|
},
|
||||||
|
,
|
||||||
{
|
{
|
||||||
title: 'Public images',
|
title: 'Public images',
|
||||||
id: '#hero',
|
id: '#hero',
|
||||||
|
|
Loading…
Reference in a new issue