-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Removed edit mode bool from update conditions * lint fix * Fixed code smells
- Loading branch information
1 parent
46708d4
commit 128bf78
Showing
4 changed files
with
31 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -970,14 +970,14 @@ describe('AddParticipantComponent', () => { | |
it('should return errorAlternativeEmail & errorJohAccountNotFound as false if called with notFoundEmailEvent as false', () => { | ||
component.errorAlternativeEmail = true; | ||
component.errorJohAccountNotFound = true; | ||
component.subcribeForSeachEmailEvents(); | ||
component.subscribeForSearchEmailEvents(); | ||
component.searchEmail.notFoundEmailEvent.next(false); | ||
expect(component.errorAlternativeEmail).toBeFalsy(); | ||
expect(component.errorJohAccountNotFound).toBeFalsy(); | ||
}); | ||
it('should have called Not Found Participant if Not Found Email Event has been called', () => { | ||
spyOn(component, 'notFoundParticipant'); | ||
component.subcribeForSeachEmailEvents(); | ||
component.subscribeForSearchEmailEvents(); | ||
component.searchEmail.notFoundEmailEvent.next(true); | ||
expect(component.notFoundParticipant).toHaveBeenCalledTimes(1); | ||
}); | ||
|
@@ -1158,10 +1158,10 @@ describe('AddParticipantComponent edit mode', () => { | |
expect(videoHearingsServiceSpy.getParticipantRoles).toHaveBeenCalled(); | ||
expect(component.showDetails).toBeTruthy(); | ||
expect(component.selectedParticipantEmail).toBe('[email protected]'); | ||
expect(component.displayNextButton).toBeTruthy(); | ||
expect(component.displayClearButton).toBeFalsy(); | ||
expect(component.displayNextButton).toBeFalsy(); | ||
expect(component.displayClearButton).toBeTruthy(); | ||
expect(component.displayAddButton).toBeFalsy(); | ||
expect(component.displayUpdateButton).toBeFalsy(); | ||
expect(component.displayUpdateButton).toBeTruthy(); | ||
}); | ||
tick(100); | ||
fixture.detectChanges(); | ||
|
@@ -1514,17 +1514,6 @@ describe('AddParticipantComponent edit mode no participants added', () => { | |
expect(component.showDetails).toBeTruthy(); | ||
})); | ||
|
||
it('should show update participant and clear details links when tries to edit a participant in hearing', fakeAsync(() => { | ||
const debugElement = fixture.debugElement; | ||
component.selectedParticipantEmail = '[email protected]'; | ||
fixture.detectChanges(); | ||
const clearFormBtn = debugElement.query(By.css('#clearFormBtn')); | ||
const updateFormBtn = debugElement.query(By.css('#updateParticipantBtn')); | ||
tick(600); | ||
expect(updateFormBtn).toBeTruthy(); | ||
expect(clearFormBtn).toBeTruthy(); | ||
})); | ||
|
||
it('should show confirmation to remove participant', fakeAsync(() => { | ||
component.ngAfterContentInit(); | ||
component.ngAfterViewInit(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters