Skip to content

Commit

Permalink
fix: organisation test
Browse files Browse the repository at this point in the history
  • Loading branch information
dainty92 committed Mar 3, 2025
1 parent 91b038a commit ae08b28
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/modules/organisations/tests/organisations.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,16 @@ describe('OrganisationsService', () => {

const result = await service.getUserOrganisations('user-id');

expect(result).toEqual({ organisations: [], total_count: 0 });
expect(result).toEqual({
data: {
organisations: [],
total_count: 0,
current_page: 1,
page_size: 10,
},
message: 'Organisations retrieved successfully',
status_code: 200,
});

// ✅ Fix expectation
expect(organisationRepository.findAndCountBy).toHaveBeenCalledWith({
Expand Down

0 comments on commit ae08b28

Please sign in to comment.