Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaed Parkar committed Nov 7, 2023
1 parent d396750 commit 5ce9d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class ParticipantListComponent implements OnInit, OnChanges, DoCheck {
constructor(private logger: Logger, private videoHearingsService: VideoHearingsService) {}

ngDoCheck(): void {
const participantsLocal = [...this.hearing?.participants || []].sort(this.sortByDisplayName());
const sortedParticipantslocal = [...this.sortedParticipants || []].sort(this.sortByDisplayName());
const participantsLocal = [...(this.hearing?.participants || [])].sort(this.sortByDisplayName());
const sortedParticipantslocal = [...(this.sortedParticipants || [])].sort(this.sortByDisplayName());
const hasParticipantListChanged = JSON.stringify(participantsLocal) !== JSON.stringify(sortedParticipantslocal);
if (hasParticipantListChanged) {
this.sortParticipants();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,6 @@ describe('Video hearing service', () => {
describe('addJudiciaryJudge', () => {
it('should add a new judge when none exists', () => {
// Arrange
const service = new VideoHearingsService(clientApiSpy);
const judicialMember = new JudicialMemberDto('Test', 'User', 'Test User', '[email protected]', '1234567890', '1234');
spyOn(service['modelHearing'].judiciaryParticipants, 'findIndex').and.returnValue(-1);

Expand All @@ -636,7 +635,6 @@ describe('Video hearing service', () => {

it('should replace an existing judge', () => {
// Arrange
const service = new VideoHearingsService(clientApiSpy);
const newJudge = new JudicialMemberDto('Test', 'User', 'Test User', '[email protected]', '1234567890', '1234');
const existingJudge = new JudicialMemberDto('Test', 'User', 'Test User', '[email protected]', '1234567890', '5678');
service['modelHearing'].judiciaryParticipants.push(existingJudge);
Expand Down

0 comments on commit 5ce9d4b

Please sign in to comment.