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 Jan 9, 2025
1 parent 3c2292f commit df0c566
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/dev/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/core/sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export type SyncOptions = {
cleanup?: boolean;
};
manifest: ManifestData;
command: "build" | "dev" | "sync";
command: 'build' | 'dev' | 'sync';
};

export default async function sync(
Expand Down
16 changes: 7 additions & 9 deletions packages/astro/test/astro-mode.test.js
Original file line number Diff line number Diff line change
@@ -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} */
Expand Down Expand Up @@ -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', () => {
Expand All @@ -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', () => {
Expand All @@ -94,8 +94,7 @@ describe('--mode', () => {

it('writes data store file in the correct location', async () => {
assert.ok(existsSync(prodDataStoreFile));
})

});
});

describe('dev', () => {
Expand Down Expand Up @@ -123,7 +122,7 @@ describe('--mode', () => {

it('writes data store file in the correct location', async () => {
assert.ok(existsSync(devDataStoreFile));
})
});
});

describe('dev --mode develop', () => {
Expand Down Expand Up @@ -151,7 +150,6 @@ describe('--mode', () => {

it('writes data store file in the correct location', async () => {
assert.ok(existsSync(devDataStoreFile));
})

});
});
});

0 comments on commit df0c566

Please sign in to comment.