mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
5642ef9029
commit
feb87c21be
1 changed files with 8 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
||||||
import assert from 'node:assert/strict';
|
import assert from 'node:assert/strict';
|
||||||
import { before, describe, it } from 'node:test';
|
import { before, describe, it } from 'node:test';
|
||||||
import * as cheerio from 'cheerio';
|
import * as cheerio from 'cheerio';
|
||||||
import { loadFixture } from './test-utils.js';
|
|
||||||
import { getViteConfig } from '../dist/config/index.js'
|
|
||||||
import { resolveConfig } from 'vite';
|
import { resolveConfig } from 'vite';
|
||||||
|
import { getViteConfig } from '../dist/config/index.js';
|
||||||
|
import { loadFixture } from './test-utils.js';
|
||||||
|
|
||||||
describe('Vite Config', async () => {
|
describe('Vite Config', async () => {
|
||||||
let fixture;
|
let fixture;
|
||||||
|
@ -24,13 +24,13 @@ describe('Vite Config', async () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("getViteConfig", () => {
|
describe('getViteConfig', () => {
|
||||||
it("Does not change the default config.", async () => {
|
it('Does not change the default config.', async () => {
|
||||||
const command = "serve";
|
const command = 'serve';
|
||||||
const mode = "test";
|
const mode = 'test';
|
||||||
const configFn = getViteConfig({});
|
const configFn = getViteConfig({});
|
||||||
const config = await configFn({ command, mode });
|
const config = await configFn({ command, mode });
|
||||||
const resolvedConfig = await resolveConfig(config, command, mode);
|
const resolvedConfig = await resolveConfig(config, command, mode);
|
||||||
assert.deepStrictEqual(resolvedConfig.resolve.conditions, ["astro"]);
|
assert.deepStrictEqual(resolvedConfig.resolve.conditions, ['astro']);
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue