Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and astrobot-houston committed Aug 5, 2022
1 parent 36223f6 commit 838eb3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions examples/with-vitest/test/basic.test.ts
Original file line number Diff line number Diff line change
@@ -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');
});
2 changes: 1 addition & 1 deletion packages/astro/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ export function getViteConfig(inlineConfig) {
);
await runHookConfigDone({ config });
return mergeConfig(viteConfig, inlineConfig);
}
};
}

0 comments on commit 838eb3e

Please sign in to comment.