-
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.
- Loading branch information
1 parent
77a1d3b
commit d13efba
Showing
38 changed files
with
320 additions
and
326 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
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
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 |
---|---|---|
|
@@ -21,15 +21,16 @@ import { FeatureFlags, LaunchDarklyService } from 'src/app/services/launch-darkl | |
import { By } from '@angular/platform-browser'; | ||
import { createMultiDayHearing } from 'src/app/testing/helpers/hearing.helpers'; | ||
import { EditHearingDatesComponent } from './edit-hearing-dates/edit-hearing-dates.component'; | ||
import { createVHBooking, VHBooking } from 'src/app/common/model/vh-booking'; | ||
import { VHBooking } from 'src/app/common/model/vh-booking'; | ||
import { cloneWithGetters } from 'src/app/common/helpers/clone-with-getters'; | ||
|
||
const newHearing = createVHBooking(); | ||
const newHearing = new VHBooking(); | ||
|
||
function initExistingHearingRequest(): VHBooking { | ||
const today = new Date(); | ||
today.setHours(10, 30); | ||
|
||
const existingRequest = createVHBooking(); | ||
const existingRequest = new VHBooking(); | ||
existingRequest.hearing_venue_id = 1; | ||
existingRequest.scheduled_date_time = today; | ||
existingRequest.scheduled_duration = 80; | ||
|
@@ -528,7 +529,7 @@ describe('HearingScheduleComponent returning to page', () => { | |
new HearingVenueResponse({ id: 1, name: '[email protected]', code: '123' }), | ||
new HearingVenueResponse({ id: 2, name: '[email protected]', code: '456' }) | ||
]; | ||
component.hearing = createVHBooking(); | ||
component.hearing = new VHBooking(); | ||
component.hearing.hearing_venue_id = 2; | ||
component.hearing.court_code = '456'; | ||
component.hearing.court_name = '[email protected]'; | ||
|
@@ -541,7 +542,7 @@ describe('HearingScheduleComponent returning to page', () => { | |
const courts = MockValues.Courts.filter(x => x.id !== -1); | ||
const selectedCourt = courts[0]; | ||
referenceDataServiceServiceSpy.getCourts.and.returnValue(of(courts)); | ||
const existingHearingRequest = { ...existingRequest }; | ||
const existingHearingRequest = cloneWithGetters(existingRequest); | ||
existingHearingRequest.hearing_id = '123455555900'; | ||
existingHearingRequest.court_name = selectedCourt.name; | ||
videoHearingsServiceSpy.getCurrentRequest.and.returnValue(existingHearingRequest); | ||
|
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
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ import { Constants } from 'src/app/common/constants'; | |
import { ParticipantModel } from 'src/app/common/model/participant.model'; | ||
import { PageUrls } from 'src/app/shared/page-url.constants'; | ||
import { VideoSupplier } from 'src/app/services/clients/api-client'; | ||
import { VHBooking } from 'src/app/common/model/vh-booking'; | ||
|
||
const router = { | ||
navigate: jasmine.createSpy('navigate'), | ||
|
@@ -51,11 +52,11 @@ describe('ParticipantItemComponent', () => { | |
fixture = TestBed.createComponent(ParticipantItemComponent); | ||
debugElement = fixture.debugElement; | ||
component = debugElement.componentInstance; | ||
component.hearing = { | ||
updated_date: new Date(), | ||
other_information: '|JudgeEmail|[email protected]|JudgePhone|123456789', | ||
supplier: VideoSupplier.Kinly | ||
}; | ||
const hearing = new VHBooking(); | ||
hearing.updated_date = new Date(), | ||
hearing.other_information = '|JudgeEmail|[email protected]|JudgePhone|123456789', | ||
hearing.supplier = VideoSupplier.Kinly; | ||
component.hearing = hearing; | ||
|
||
fixture.detectChanges(); | ||
}); | ||
|
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
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
Oops, something went wrong.