Add examples
This commit is contained in:
9
examples/yearbook/person.test.js
Normal file
9
examples/yearbook/person.test.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { Person } from './person';
|
||||
|
||||
describe('Person', () => {
|
||||
it('should be an instance of a Person', () => {
|
||||
const person = new Person('John', 'Doe', '2000-01-01');
|
||||
expect(person).toBeInstanceOf(Person);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user