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 291ccd2 commit 91b038a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ describe('OrganisationsService', () => {
});

describe('deleteorganisation', () => {
beforeAll(() => {
console.log(Object.keys(organisationRepository));
});

it('should mark an organisation as deleted', async () => {
const orgId = 'org-id';

Expand Down Expand Up @@ -311,7 +315,7 @@ describe('OrganisationsService', () => {
});

it('should exclude deleted organisations from queries', async () => {
jest.spyOn(organisationRepository, 'findAndCount').mockResolvedValue([[], 0]);
organisationRepository.findAndCount = jest.fn().mockResolvedValue([[], 0]);

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

Expand Down

0 comments on commit 91b038a

Please sign in to comment.