diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.spec.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.spec.ts index 37ba2896e..feb116b53 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.spec.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.spec.ts @@ -136,15 +136,15 @@ describe('SearchService', () => { beforeEach(() => { clientApiSpy = jasmine.createSpyObj('BHClient', [ 'postPersonBySearchTerm', - 'searchForJudiciaryPerson', 'postJudiciaryPersonBySearchTerm', + 'postJudgesBySearchTerm', 'getStaffMembersBySearchTerm' ]); clientApiSpy.postPersonBySearchTerm.and.returnValue(of(personList)); clientApiSpy.getStaffMembersBySearchTerm.and.returnValue(of(staffMemberList)); - clientApiSpy.searchForJudiciaryPerson.and.returnValue(of(judiciaryPersonList)); - clientApiSpy.postJudiciaryPersonBySearchTerm.and.returnValue(of(judgeList)); + clientApiSpy.postJudiciaryPersonBySearchTerm.and.returnValue(of(judiciaryPersonList)); + clientApiSpy.postJudgesBySearchTerm.and.returnValue(of(judgeList)); launchDarklyServiceSpy.getFlag.withArgs(FeatureFlags.eJudFeature).and.returnValue(of(true)); @@ -166,8 +166,8 @@ describe('SearchService', () => { beforeEach(() => { clientApiSpy = jasmine.createSpyObj('BHClient', [ 'postPersonBySearchTerm', - 'searchForJudiciaryPerson', 'postJudiciaryPersonBySearchTerm', + 'postJudgesBySearchTerm', 'getStaffMembersBySearchTerm' ]); diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.ts index 3dc39637a..05c79cdbf 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/services/search.service.ts @@ -94,7 +94,7 @@ export class SearchService { } searchJudiciaryEntries(term): Observable> { - return this.bhClient.searchForJudiciaryPerson(term); + return this.bhClient.postJudiciaryPersonBySearchTerm(term); } searchStaffMemberAccounts(term): Observable> {