[ci] format
This commit is contained in:
parent
ec04553525
commit
5deacfb6c3
2 changed files with 5 additions and 2 deletions
|
@ -109,7 +109,10 @@ export default function assets({
|
|||
format = result.format;
|
||||
}
|
||||
|
||||
res.setHeader('Content-Type', mime.getType(fileURLToPath(filePathURL)) || `image/${format}`);
|
||||
res.setHeader(
|
||||
'Content-Type',
|
||||
mime.getType(fileURLToPath(filePathURL)) || `image/${format}`
|
||||
);
|
||||
res.setHeader('Cache-Control', 'max-age=360000');
|
||||
|
||||
const stream = Readable.from(data);
|
||||
|
|
|
@ -72,7 +72,7 @@ describe('astro:image', () => {
|
|||
expect($img.attr('alt')).to.equal('a penguin');
|
||||
});
|
||||
|
||||
it('middleware loads the file', async() => {
|
||||
it('middleware loads the file', async () => {
|
||||
let $img = $('#local img');
|
||||
let src = $img.attr('src');
|
||||
let res = await fixture.fetch(src);
|
||||
|
|
Loading…
Reference in a new issue