@@ -23,6 +23,7 @@ const mockResponseBody : CompaniesResource = ({
2323 date_of_cessation : ( new Date ( "19910212" ) ) ,
2424 date_of_creation : ( new Date ( "19910212" ) ) ,
2525 kind : "kind" ,
26+ ordered_alpha_key_with_id : "testcompany:0000789" ,
2627 previous_company_names : [
2728 {
2829 ceased_on : ( new Date ( "19910212" ) ) ,
@@ -44,6 +45,7 @@ const mockResponseBody : CompaniesResource = ({
4445 date_of_cessation : ( new Date ( "19910212" ) ) ,
4546 date_of_creation : ( new Date ( "19910212" ) ) ,
4647 kind : "kind" ,
48+ ordered_alpha_key_with_id : "testcompany:0000789" ,
4749 previous_company_names : [
4850 {
4951 ceased_on : ( new Date ( "19910212" ) ) ,
@@ -59,6 +61,9 @@ const mockRequestId = "fdskfhsdoifhsffsif";
5961const testCompanyName = "TEST COMPANY NAME" ;
6062const searchType = "alphabetical" ;
6163const startIndex = 0 ;
64+ const searchBefore = "testcompany:0000784"
65+ const searchafter = "testcompany:0000794"
66+ const page = 0
6267
6368describe ( "create a dissolved search GET" , ( ) => {
6469 beforeEach ( ( ) => {
@@ -80,7 +85,7 @@ describe("create a dissolved search GET", () => {
8085
8186 const mockRequest = sinon . stub ( requestClient , "httpGet" ) . resolves ( mockGetRequest ) ;
8287 const search : DissolvedSearchService = new DissolvedSearchService ( requestClient ) ;
83- const data : Resource < CompaniesResource > = await search . getCompanies ( testCompanyName , mockRequestId , searchType , startIndex ) ;
88+ const data : Resource < CompaniesResource > = await search . getCompanies ( testCompanyName , mockRequestId , searchType , startIndex , searchBefore , searchafter , page ) ;
8489
8590 expect ( data . httpStatusCode ) . to . equal ( 401 ) ;
8691 expect ( data . resource ) . to . be . undefined ;
@@ -94,7 +99,7 @@ describe("create a dissolved search GET", () => {
9499
95100 const mockRequest = sinon . stub ( requestClient , "httpGet" ) . resolves ( mockGetRequest ) ;
96101 const search : DissolvedSearchService = new DissolvedSearchService ( requestClient ) ;
97- const data : Resource < CompaniesResource > = await search . getCompanies ( testCompanyName , mockRequestId , searchType , startIndex ) ;
102+ const data : Resource < CompaniesResource > = await search . getCompanies ( testCompanyName , mockRequestId , searchType , startIndex , searchBefore , searchafter , page ) ;
98103 const item = data . resource . items [ 0 ] ;
99104 const mockItem = mockResponseBody . items [ 0 ] ;
100105
0 commit comments