Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jzunigax2 committed Jul 19, 2024
1 parent 7ad361c commit 6a842cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/modules/workspaces/domains/workspaces.domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class Workspace implements WorkspaceAttributes {
avatar: this.avatar,
workspaceUserId: this.workspaceUserId,
numberOfSeats: this.numberOfSeats,
setupCompleted: this.setupCompleted,
createdAt: this.createdAt,
updatedAt: this.updatedAt,
};
Expand Down
4 changes: 2 additions & 2 deletions src/modules/workspaces/workspaces.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,11 +603,11 @@ describe('Workspace Controller', () => {

jest
.spyOn(workspacesUsecases, 'getWorkspaceDetails')
.mockResolvedValueOnce(workspace);
.mockResolvedValueOnce(workspace.toJSON());

await expect(
workspacesController.getWorkspaceDetails(workspace.id, user),
).resolves.toEqual(workspace);
).resolves.toEqual(workspace.toJSON());
});
});
});

0 comments on commit 6a842cd

Please sign in to comment.