generated from avior/template-web-astro
Initial commit
This commit is contained in:
5
tests/README.md
Normal file
5
tests/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Tests
|
||||
|
||||
Old Unit tests for each elements
|
||||
|
||||
the paths should correspond to the base folder from `src`
|
9
tests/basic.test.ts
Normal file
9
tests/basic.test.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { 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);
|
||||
});
|
Reference in New Issue
Block a user