Skip to content

Commit 82e105d

Browse files
committed
more linting
1 parent 990ab71 commit 82e105d

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

lambdas/api-handler/src/handlers/__tests__/get-mi.test.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ describe("API Lambda handler", () => {
3131
it("returns 200 OK and the MI information", async () => {
3232
const mockedGetMiById = getMiOperation as jest.Mock;
3333
mockedGetMiById.mockResolvedValue({
34-
data:{
35-
id: "id1",
36-
type: "ManagementInformation",
37-
attributes: {
38-
lineItem: "envelope-business-standard",
39-
timestamp: "2023-11-17T14:27:51.413Z",
40-
quantity: 22,
41-
specificationId: "spec1",
42-
groupId: "group1",
43-
stockRemaining: 20_000,
44-
},
34+
data: {
35+
id: "id1",
36+
type: "ManagementInformation",
37+
attributes: {
38+
lineItem: "envelope-business-standard",
39+
timestamp: "2023-11-17T14:27:51.413Z",
40+
quantity: 22,
41+
specificationId: "spec1",
42+
groupId: "group1",
43+
stockRemaining: 20_000,
4544
},
45+
},
4646
});
4747

4848
const event = makeApiGwEvent({
@@ -59,18 +59,18 @@ describe("API Lambda handler", () => {
5959
const result = await getMi(event, mockDeep<Context>(), jest.fn());
6060

6161
const expected = {
62-
data:{
63-
id: "id1",
64-
type: "ManagementInformation",
65-
attributes: {
66-
lineItem: "envelope-business-standard",
67-
timestamp: "2023-11-17T14:27:51.413Z",
68-
quantity: 22,
69-
specificationId: "spec1",
70-
groupId: "group1",
71-
stockRemaining: 20_000,
72-
},
62+
data: {
63+
id: "id1",
64+
type: "ManagementInformation",
65+
attributes: {
66+
lineItem: "envelope-business-standard",
67+
timestamp: "2023-11-17T14:27:51.413Z",
68+
quantity: 22,
69+
specificationId: "spec1",
70+
groupId: "group1",
71+
stockRemaining: 20_000,
7372
},
73+
},
7474
};
7575

7676
expect(result).toEqual({

0 commit comments

Comments
 (0)