Skip to content

Commit 2cc3644

Browse files
rebase against main
1 parent 4f057cc commit 2cc3644

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lambdas/supplier-allocator/src/handler/__tests__/allocate-handler.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)