diff options
author | 2025-01-09 16:10:58 +0000 | |
---|---|---|
committer | 2025-01-09 16:10:58 +0000 | |
commit | df0c5665c1c1bbbaa878d01bca28d6558762ea00 (patch) | |
tree | 5c4cc73da3663947e792d10cce163edde994ebc4 | |
parent | 3c2292f2f0accf1974b30dbe32f040c56413e731 (diff) | |
download | astro-df0c5665c1c1bbbaa878d01bca28d6558762ea00.tar.gz astro-df0c5665c1c1bbbaa878d01bca28d6558762ea00.tar.zst astro-df0c5665c1c1bbbaa878d01bca28d6558762ea00.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/dev/dev.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/core/sync/index.ts | 2 | ||||
-rw-r--r-- | packages/astro/test/astro-mode.test.js | 16 |
3 files changed, 9 insertions, 11 deletions
diff --git a/packages/astro/src/core/dev/dev.ts b/packages/astro/src/core/dev/dev.ts index b54074c8e..606d292e6 100644 --- a/packages/astro/src/core/dev/dev.ts +++ b/packages/astro/src/core/dev/dev.ts @@ -92,7 +92,7 @@ export default async function dev(inlineConfig: AstroInlineConfig): Promise<DevS logger.error('content', err.message); } - if(!store) { + if (!store) { logger.error('content', 'Failed to create data store'); } diff --git a/packages/astro/src/core/sync/index.ts b/packages/astro/src/core/sync/index.ts index 6f796c171..de531cf10 100644 --- a/packages/astro/src/core/sync/index.ts +++ b/packages/astro/src/core/sync/index.ts @@ -49,7 +49,7 @@ export type SyncOptions = { cleanup?: boolean; }; manifest: ManifestData; - command: "build" | "dev" | "sync"; + command: 'build' | 'dev' | 'sync'; }; export default async function sync( diff --git a/packages/astro/test/astro-mode.test.js b/packages/astro/test/astro-mode.test.js index cffacce6e..91967beb4 100644 --- a/packages/astro/test/astro-mode.test.js +++ b/packages/astro/test/astro-mode.test.js @@ -1,8 +1,8 @@ import assert from 'node:assert/strict'; +import { promises as fs, existsSync } from 'node:fs'; import { after, afterEach, before, describe, it } from 'node:test'; import * as cheerio from 'cheerio'; import { loadFixture } from './test-utils.js'; -import { existsSync, promises as fs } from 'node:fs'; describe('--mode', () => { /** @type {import('./test-utils.js').Fixture} */ @@ -51,7 +51,7 @@ describe('--mode', () => { it('writes data store file in the correct location', async () => { assert.ok(existsSync(prodDataStoreFile)); - }) + }); }); describe('build --mode testing --devOutput', () => { @@ -68,12 +68,12 @@ describe('--mode', () => { assert.equal($('#env-prod').text(), 'false'); assert.equal($('#env-title').text(), ''); assert.equal($('#env-astro-title').text(), 'unset'); - assert.ok + assert.ok; }); it('writes data store file in the correct location', async () => { assert.ok(existsSync(prodDataStoreFile)); - }) + }); }); describe('build --mode staging', () => { @@ -94,8 +94,7 @@ describe('--mode', () => { it('writes data store file in the correct location', async () => { assert.ok(existsSync(prodDataStoreFile)); - }) - + }); }); describe('dev', () => { @@ -123,7 +122,7 @@ describe('--mode', () => { it('writes data store file in the correct location', async () => { assert.ok(existsSync(devDataStoreFile)); - }) + }); }); describe('dev --mode develop', () => { @@ -151,7 +150,6 @@ describe('--mode', () => { it('writes data store file in the correct location', async () => { assert.ok(existsSync(devDataStoreFile)); - }) - + }); }); }); |