Skip to content

Commit

Permalink
Merge branch 'P2-903-Tracking-of-outcomes-achievements-against-target…
Browse files Browse the repository at this point in the history
…s' of https://github.com/AllianceBioversityCIAT/onecgiar_pr into P2-903-Tracking-of-outcomes-achievements-against-targets
  • Loading branch information
German Martinez committed Dec 13, 2024
2 parents 4fdd040 + f80012b commit f43a037
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions onecgiar-pr-server/src/api/results/result.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,6 @@ describe('Result service unit test', () => {
expect(results.response[0].id).toBeDefined();
});

it('should error when not found result', async () => {
jest
.spyOn(resultService['_customResultRepository'], 'AllResultsByRoleUsers')
.mockResolvedValue(() => Promise.resolve([]));
const results = resultService.findAllByRole(-1);
expect((await results).message).toBe('Results Not Found');
expect((await results).status).toBe(HttpStatus.NOT_FOUND);
});

it('should return all results legacy new', async () => {
const title = 'Assessment of the pote';
const results = await resultService.findAllResultsLegacyNew(title);
Expand Down

0 comments on commit f43a037

Please sign in to comment.