Remove some of the included tests from the Person example

This commit is contained in:
Steve Kinney
2024-09-29 16:54:20 -06:00
parent ef8b26faa9
commit 8f4ba6690c

View File

@@ -11,17 +11,4 @@ describe.todo('Person', () => {
lastName: 'Hopper', lastName: 'Hopper',
}); });
}); });
it('should throw an error if first name or last name is missing', () => {
expect(() => new Person('Grace')).toThrow(
'First name and last name are required',
);
expect(() => new Person()).toThrow('First name and last name are required');
});
it('should return the full name', () => {
const person = new Person('Grace', 'Hopper');
expect(person.fullName).toBe('Grace Hopper');
});
}); });