File tree Expand file tree Collapse file tree
lambdas/supplier-allocator/src/handler/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ function createSupplierStatusChangeEvent(
109109 billingRef : "1y3q9v1zzzz" ,
110110 status : "RETURNED" ,
111111 supplierId : "supplier1" ,
112+ specificationBillingId : "billing1" ,
112113 } ,
113114 datacontenttype : "application/json" ,
114115 dataschema :
@@ -145,6 +146,7 @@ describe("createSupplierAllocatorHandler", () => {
145146 lv1 : {
146147 supplierId : "supplier1" ,
147148 specId : "spec1" ,
149+ billingId : "billing1" ,
148150 } ,
149151 } ,
150152 } as EnvVars ,
@@ -179,6 +181,7 @@ describe("createSupplierAllocatorHandler", () => {
179181 expect ( messageBody . supplierSpec ) . toEqual ( {
180182 supplierId : "supplier1" ,
181183 specId : "spec1" ,
184+ billingId : "billing1" ,
182185 } ) ;
183186 } ) ;
184187
@@ -205,6 +208,7 @@ describe("createSupplierAllocatorHandler", () => {
205208 expect ( messageBody . supplierSpec ) . toEqual ( {
206209 supplierId : "supplier1" ,
207210 specId : "spec1" ,
211+ billingId : "billing1" ,
208212 } ) ;
209213 } ) ;
210214
@@ -261,6 +265,7 @@ describe("createSupplierAllocatorHandler", () => {
261265 const messageBody = JSON . parse ( sendCall . input . MessageBody ) ;
262266 expect ( messageBody . supplierSpec . supplierId ) . toBe ( "supplier1" ) ;
263267 expect ( messageBody . supplierSpec . specId ) . toBe ( "spec1" ) ;
268+ expect ( messageBody . supplierSpec . billingId ) . toBe ( "billing1" ) ;
264269 } ) ;
265270
266271 test ( "processes multiple messages in batch" , async ( ) => {
You can’t perform that action at this time.
0 commit comments