Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored and astrobot-houston committed Feb 13, 2025
1 parent 344e9bc commit f392bef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/integrations/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export async function runHookConfigDone({
});
}
}
// Session config is validated after all integrations have had a chance to
// Session config is validated after all integrations have had a chance to
// register a default session driver, and we know the output type.
// This can't happen in the Zod schema because it that happens before adapters run
// and also doesn't know whether it's a server build or static build.
Expand Down
4 changes: 3 additions & 1 deletion packages/astro/test/core-image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,9 @@ describe('astro:image', () => {
const params = new URLSearchParams();
params.set('href', '/src/assets/penguin1.jpg?origWidth=207&origHeight=243&origFormat=jpg');
params.set('f', 'webp');
const response = await fixture.fetch('/some-base/_image?' + String(params), { method: 'HEAD' });
const response = await fixture.fetch('/some-base/_image?' + String(params), {
method: 'HEAD',
});
assert.equal(response.status, 200);
assert.equal(response.body, null);
assert.equal(response.headers.get('content-type'), 'image/webp');
Expand Down
6 changes: 3 additions & 3 deletions packages/integrations/netlify/test/functions/sessions.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// @ts-check
import assert from 'node:assert/strict';
import { mkdir, rm } from 'node:fs/promises';
import { after, before, describe, it } from 'node:test';
import { BlobsServer } from '@netlify/blobs/server';
import * as devalue from 'devalue';
import netlify from '../../dist/index.js';
import { loadFixture } from '../../../../astro/test/test-utils.js';
import { BlobsServer } from '@netlify/blobs/server';
import { rm, mkdir } from 'node:fs/promises';
import netlify from '../../dist/index.js';
const token = 'mock';
const siteID = '1';
const dataDir = '.netlify/sessions';
Expand Down
5 changes: 2 additions & 3 deletions packages/integrations/node/test/sessions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ describe('Astro.session', () => {
});
});

/** @type {import('../../../astro/src/types/public/preview.js').PreviewServer} */
let app;
/** @type {import('../../../astro/src/types/public/preview.js').PreviewServer} */
let app;
before(async () => {
await fixture.build({});
app = await fixture.preview({});
Expand Down Expand Up @@ -112,7 +112,6 @@ describe('Astro.session', () => {
experimental: {
session: true,
},

});
devServer = await fixture.startDevServer();
});
Expand Down

0 comments on commit f392bef

Please sign in to comment.