[ci] format

This commit is contained in:
matthewp 2023-03-08 22:34:39 +00:00 committed by fredkbot
parent ec04553525
commit 5deacfb6c3
2 changed files with 5 additions and 2 deletions

View file

@ -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);

View file

@ -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);