diff --git a/src/ports/lists/component.ts b/src/ports/lists/component.ts index fd594b4..ab0340d 100644 --- a/src/ports/lists/component.ts +++ b/src/ports/lists/component.ts @@ -162,7 +162,7 @@ export function createListsComponent(components: Pick { validateDuplicatedListName(name, error) diff --git a/test/unit/lists-component.spec.ts b/test/unit/lists-component.spec.ts index 69137f9..573387e 100644 --- a/test/unit/lists-component.spec.ts +++ b/test/unit/lists-component.spec.ts @@ -576,7 +576,7 @@ describe('when creating a new list', () => { description: null, created_at: new Date(), updated_at: new Date(), - is_private: false + is_private: true } // Create List Query @@ -612,7 +612,7 @@ describe('when creating a new list', () => { }) it('should resolve with the new list', () => { - expect(result).toEqual(dbList) + expect(result).toEqual({ ...dbList, is_private: true }) }) }) @@ -643,7 +643,7 @@ describe('when creating a new list', () => { }) it('should resolve with the new list', () => { - expect(result).toEqual(dbList) + expect(result).toEqual({ ...dbList, is_private: false }) }) }) })