From 5369ad30ed018a93e3d1de61707c176cbb23d510 Mon Sep 17 00:00:00 2001 From: Xenos F Date: Wed, 27 Mar 2024 03:22:50 +0800 Subject: [PATCH] Edit test case name for clarity --- .../instructor-request-form.component.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/app/pages-static/request-page/instructor-request-form/instructor-request-form.component.spec.ts b/src/web/app/pages-static/request-page/instructor-request-form/instructor-request-form.component.spec.ts index 2c71ff21e2f..15510ede611 100644 --- a/src/web/app/pages-static/request-page/instructor-request-form/instructor-request-form.component.spec.ts +++ b/src/web/app/pages-static/request-page/instructor-request-form/instructor-request-form.component.spec.ts @@ -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); @@ -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())