diff options
author | 2022-08-05 19:42:58 +0000 | |
---|---|---|
committer | 2022-08-05 19:42:58 +0000 | |
commit | 838eb3e5cc523d20aa5fb6b136ed5f6701568b1d (patch) | |
tree | 2a1cddc616060d6974610c177e1abdd763271d61 | |
parent | 36223f663ef73ef4581c4ad93c88666d2e0190e7 (diff) | |
download | astro-838eb3e5cc523d20aa5fb6b136ed5f6701568b1d.tar.gz astro-838eb3e5cc523d20aa5fb6b136ed5f6701568b1d.tar.zst astro-838eb3e5cc523d20aa5fb6b136ed5f6701568b1d.zip |
[ci] format
-rw-r--r-- | examples/with-vitest/test/basic.test.ts | 26 | ||||
-rw-r--r-- | packages/astro/config.mjs | 2 |
2 files changed, 14 insertions, 14 deletions
diff --git a/examples/with-vitest/test/basic.test.ts b/examples/with-vitest/test/basic.test.ts index 0f6d96168..f4677c6cb 100644 --- a/examples/with-vitest/test/basic.test.ts +++ b/examples/with-vitest/test/basic.test.ts @@ -1,21 +1,21 @@ -import { assert, expect, test } from 'vitest' +import { assert, expect, test } from 'vitest'; // Edit an assertion and save to see HMR in action test('Math.sqrt()', () => { - expect(Math.sqrt(4)).toBe(2) - expect(Math.sqrt(144)).toBe(12) - expect(Math.sqrt(2)).toBe(Math.SQRT2) -}) + expect(Math.sqrt(4)).toBe(2); + expect(Math.sqrt(144)).toBe(12); + expect(Math.sqrt(2)).toBe(Math.SQRT2); +}); test('JSON', () => { - const input = { - foo: 'hello', - bar: 'world', - } + const input = { + foo: 'hello', + bar: 'world', + }; - const output = JSON.stringify(input) + const output = JSON.stringify(input); - expect(output).eq('{"foo":"hello","bar":"world"}') - assert.deepEqual(JSON.parse(output), input, 'matches original') -}) + expect(output).eq('{"foo":"hello","bar":"world"}'); + assert.deepEqual(JSON.parse(output), input, 'matches original'); +}); diff --git a/packages/astro/config.mjs b/packages/astro/config.mjs index 47193dbff..f2f81999a 100644 --- a/packages/astro/config.mjs +++ b/packages/astro/config.mjs @@ -39,5 +39,5 @@ export function getViteConfig(inlineConfig) { ); await runHookConfigDone({ config }); return mergeConfig(viteConfig, inlineConfig); - } + }; } |