Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored and astrobot-houston committed Oct 29, 2024
1 parent 5642ef9 commit feb87c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/astro/test/config-vite.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import assert from 'node:assert/strict';
import { before, describe, it } from 'node:test';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import { getViteConfig } from '../dist/config/index.js'
import { resolveConfig } from 'vite';
import { getViteConfig } from '../dist/config/index.js';
import { loadFixture } from './test-utils.js';

describe('Vite Config', async () => {
let fixture;
Expand All @@ -24,13 +24,13 @@ describe('Vite Config', async () => {
});
});

describe("getViteConfig", () => {
it("Does not change the default config.", async () => {
const command = "serve";
const mode = "test";
describe('getViteConfig', () => {
it('Does not change the default config.', async () => {
const command = 'serve';
const mode = 'test';
const configFn = getViteConfig({});
const config = await configFn({ command, mode });
const resolvedConfig = await resolveConfig(config, command, mode);
assert.deepStrictEqual(resolvedConfig.resolve.conditions, ["astro"]);
})
assert.deepStrictEqual(resolvedConfig.resolve.conditions, ['astro']);
});
});

0 comments on commit feb87c2

Please sign in to comment.