Skip to content

Commit 38f00b4

Browse files
committed
lint:fix
1 parent 4983fe4 commit 38f00b4

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

packages/event-builder/src/__tests__/letter-variant-event-builder.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ describe("letter-variant-event-builder", () => {
99
const base: Partial<LetterVariant> = {
1010
name: "Test Variant",
1111
description: "Test",
12-
volumeGroupId: "volume-group-123" as any,
12+
volumeGroupId: "volume-group-123",
1313
type: "STANDARD",
1414
priority: 10,
15-
packSpecificationIds: ["00000000-0000-0000-0000-000000000001" as any],
15+
packSpecificationIds: ["00000000-0000-0000-0000-000000000001"],
1616
clientId: "client-1",
1717
};
1818

1919
it("skips draft", () => {
2020
const ev = buildLetterVariantEvent({
2121
...base,
22-
id: "11111111-1111-1111-1111-111111111111" as any,
22+
id: "11111111-1111-1111-1111-111111111111",
2323
status: "DRAFT",
2424
} as LetterVariant);
2525
expect(ev).toBeUndefined();
@@ -39,7 +39,7 @@ describe("letter-variant-event-builder", () => {
3939
it("builds published", () => {
4040
const ev = buildLetterVariantEvent({
4141
...base,
42-
id: "22222222-2222-2222-2222-222222222222" as any,
42+
id: "22222222-2222-2222-2222-222222222222",
4343
status: "PROD",
4444
} as LetterVariant);
4545
expect(ev).toBeDefined();
@@ -55,12 +55,12 @@ describe("letter-variant-event-builder", () => {
5555
const events = buildLetterVariantEvents({
5656
a: {
5757
...base,
58-
id: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" as any,
58+
id: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
5959
status: "PROD",
6060
} as LetterVariant,
6161
b: {
6262
...base,
63-
id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" as any,
63+
id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
6464
status: "INT",
6565
} as LetterVariant,
6666
});
@@ -74,7 +74,7 @@ describe("letter-variant-event-builder", () => {
7474
const ev = buildLetterVariantEvent(
7575
{
7676
...base,
77-
id: "22222222-2222-2222-2222-222222222222" as any,
77+
id: "22222222-2222-2222-2222-222222222222",
7878
status: "PROD",
7979
} as LetterVariant,
8080
{},

packages/event-builder/src/__tests__/pack-specification-event-builder.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ describe("pack-specification-event-builder", () => {
1212
updatedAt: "2024-01-01T00:00:00.000Z",
1313
version: 1,
1414
billingId: "TEST-BILLING-001",
15-
postage: { id: "postage-test" as any, size: "STANDARD" },
15+
postage: { id: "postage-test", size: "STANDARD" },
1616
} satisfies Omit<PackSpecification, "id">;
1717

1818
it("skips draft", () => {
1919
const ev = buildPackSpecificationEvent({
2020
...base,
21-
id: "11111111-1111-1111-1111-111111111111" as any,
21+
id: "11111111-1111-1111-1111-111111111111",
2222
status: "DRAFT",
23-
} as PackSpecification);
23+
});
2424
expect(ev).toBeUndefined();
2525
});
2626

@@ -38,7 +38,7 @@ describe("pack-specification-event-builder", () => {
3838
it("builds published", () => {
3939
const event = buildPackSpecificationEvent({
4040
...base,
41-
id: "22222222-2222-2222-2222-222222222222" as any,
41+
id: "22222222-2222-2222-2222-222222222222",
4242
status: "PROD",
4343
} satisfies PackSpecification);
4444
expect(event).toBeDefined();
@@ -54,14 +54,14 @@ describe("pack-specification-event-builder", () => {
5454
const events = buildPackSpecificationEvents({
5555
a: {
5656
...base,
57-
id: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" as any,
57+
id: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
5858
status: "PROD",
59-
} as PackSpecification,
59+
},
6060
b: {
6161
...base,
62-
id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" as any,
62+
id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb",
6363
status: "INT",
64-
} as PackSpecification,
64+
},
6565
});
6666
expect(events).toHaveLength(2);
6767
expect(events[0].sequence).toBe("00000000000000000001");

packages/event-builder/src/__tests__/volume-group-event-builder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ describe("volume-group-event-builder", () => {
163163
it("throws error when specialised schema missing (unknown status)", () => {
164164
// Force an invalid status not in volumeGroupEvents map
165165
const bogus = { ...baseVolumeGroup, status: "ARCHIVED" as any };
166-
expect(() => buildVolumeGroupEvent(bogus as VolumeGroup)).toThrow(
166+
expect(() => buildVolumeGroupEvent(bogus)).toThrow(
167167
/No specialised event schema found for status ARCHIVED/,
168168
);
169169
});

0 commit comments

Comments
 (0)