From 8f4ba6690c5b72e36fb901e79b3a84d2f4b5a513 Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Sun, 29 Sep 2024 16:54:20 -0600 Subject: [PATCH] Remove some of the included tests from the Person example --- examples/characters/src/person.test.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/examples/characters/src/person.test.js b/examples/characters/src/person.test.js index e199b99..01fb975 100644 --- a/examples/characters/src/person.test.js +++ b/examples/characters/src/person.test.js @@ -11,17 +11,4 @@ describe.todo('Person', () => { 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'); - }); });