File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/services/search/alphabetical-search
test/services/search/alphabetical-search Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export interface Items {
1616 company_status : string ;
1717 corporate_name : string ;
1818 record_type : string ;
19+ ordered_alpha_key : string ;
1920}
2021
2122export interface Links {
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ const mockResponseBody : CompaniesResource = ({
2020 company_number : "FC022000" ,
2121 company_status : "active" ,
2222 corporate_name : "corporate name" ,
23- record_type : "record type"
23+ record_type : "record type" ,
24+ ordered_alpha_key : "ordered alpha key"
2425 } ,
2526 links : {
2627 self : "/company/FC022000"
@@ -76,6 +77,7 @@ describe("create a alphabetical search GET", () => {
7677 expect ( data . resource . results [ 0 ] . items . company_status ) . to . equal ( mockResponseBody . results [ 0 ] . items . company_status ) ;
7778 expect ( data . resource . results [ 0 ] . items . corporate_name ) . to . equal ( mockResponseBody . results [ 0 ] . items . corporate_name ) ;
7879 expect ( data . resource . results [ 0 ] . items . record_type ) . to . equal ( mockResponseBody . results [ 0 ] . items . record_type ) ;
80+ expect ( data . resource . results [ 0 ] . items . ordered_alpha_key ) . to . equal ( mockResponseBody . results [ 0 ] . items . ordered_alpha_key ) ;
7981 expect ( data . resource . results [ 0 ] . links ) . to . equal ( mockResponseBody . results [ 0 ] . links ) ;
8082 } ) ;
8183} ) ;
You can’t perform that action at this time.
0 commit comments