Skip to content

Commit

Permalink
Edit test case name for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
xenosf committed Mar 26, 2024
1 parent c1226e9 commit 5369ad3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('InstructorRequestFormComponent', () => {
expect(component).toBeTruthy();
});

it('should raise requestSubmissionEvent when submit button is clicked', () => {
it('should emit requestSubmissionEvent once when submit button is clicked', () => {
jest.spyOn(component.requestSubmissionEvent, 'emit');

fillFormWith(typicalModel);
Expand All @@ -43,7 +43,7 @@ describe('InstructorRequestFormComponent', () => {
expect(component.requestSubmissionEvent.emit).toHaveBeenCalledTimes(1);
});

it('should raise requestSubmissionEvent with the correct data when form is submitted', () => {
it('should emit requestSubmissionEvent with the correct data when form is submitted', () => {
let actualModel: InstructorRequestFormModel | null = null;
// Listen for event
component.requestSubmissionEvent.pipe(first())
Expand Down

0 comments on commit 5369ad3

Please sign in to comment.