Skip to content

Commit

Permalink
mock update
Browse files Browse the repository at this point in the history
  • Loading branch information
whiitex committed Jan 14, 2024
1 parent 2c77714 commit 09e737b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/src/recruitment-session/recruitment-session.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class RecruitmentSession implements RecruitmentSessionInterface {
@PrimaryGeneratedColumn('increment')
id: number;

@Column()
@Column('enum')
state: RecruitmentSessionState;

@Column('int', { name: 'slot_duration' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ describe('Recruitment Session Service', () => {
.spyOn(mockedRepository, 'remove')
.mockResolvedValue(mockRecruitmentSession);
const result = recruitmentSessionService.deletRecruitmentSession(
mockRecruitmentSession,
// perché non prende "await"
mockRecruitmentSession, // nonostante la funzione nel service sia async ??
);
expect(result).toEqual([mockRecruitmentSession]);
expect(mockedRepository.find).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 09e737b

Please sign in to comment.