From 058fe1fdc8310755daa849bdd5c66180f0ee4cba Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Wed, 2 Oct 2024 12:53:23 -0500 Subject: [PATCH] Update person.test.js --- examples/characters/src/person.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/characters/src/person.test.js b/examples/characters/src/person.test.js index 01fb975..437479a 100644 --- a/examples/characters/src/person.test.js +++ b/examples/characters/src/person.test.js @@ -2,11 +2,12 @@ import { describe, it, expect } from 'vitest'; import { Person } from './person.js'; // Remove the `todo` from the `describe` to run the tests. -describe.todo('Person', () => { +describe('Person', () => { // This test will fail. Why? it('should create a person with a first name and last name', () => { const person = new Person('Grace', 'Hopper'); expect(person).toEqual({ + id: expect.stringContaining('person-'), firstName: 'Grace', lastName: 'Hopper', });