0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
natemoo-re 2022-08-05 19:42:58 +00:00 committed by fredkbot
parent 36223f663e
commit 838eb3e5cc
2 changed files with 14 additions and 14 deletions

View file

@ -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');
});

View file

@ -39,5 +39,5 @@ export function getViteConfig(inlineConfig) {
);
await runHookConfigDone({ config });
return mergeConfig(viteConfig, inlineConfig);
}
};
}