|
6 | 6 | getAllocationLogForDomainId, |
7 | 7 | getVariantsForAllocation, |
8 | 8 | getVolumeGroupData, |
9 | | - updateLetterVariantConfig, |
| 9 | + updateLetterVariantPackSpecs, |
10 | 10 | updateVolumeGroupData, |
11 | 11 | } from "tests/helpers/allocation-helper"; |
12 | 12 | import { createPreparedV1Event } from "tests/helpers/event-fixtures"; |
@@ -63,7 +63,7 @@ test.describe("Allocator Rejected Allocation Tests", () => { |
63 | 63 | }); |
64 | 64 |
|
65 | 65 | if (letterVariantMapping === 7) { |
66 | | - await updateLetterVariantConfig(letterVariant, [""]); |
| 66 | + await updateLetterVariantPackSpecs(letterVariant, [""]); |
67 | 67 | } |
68 | 68 |
|
69 | 69 | const response = await sendSnsEvent(preparedEvent); |
@@ -104,7 +104,9 @@ test.describe("Allocator Rejected Allocation Tests", () => { |
104 | 104 | expect(lettersInDb.reasonText).toContain( |
105 | 105 | `No pack specification found for id`, |
106 | 106 | ); |
107 | | - await updateLetterVariantConfig(letterVariant, ["notify-c5-colour"]); // update back to valid config for other tests |
| 107 | + await updateLetterVariantPackSpecs(letterVariant, [ |
| 108 | + "notify-c5-colour", |
| 109 | + ]); // update back to valid config for other tests |
108 | 110 | break; |
109 | 111 | } |
110 | 112 | default: { |
@@ -133,8 +135,9 @@ test.describe("Allocator Rejected Allocation Tests", () => { |
133 | 135 | const letterVariant = getVariantsForAllocation(8); |
134 | 136 | logger.info(`Testing volumeGroup with ${fieldToUpdate}: ${domainId}`); |
135 | 137 |
|
136 | | - const { originalEndDate, originalStartDate } = |
137 | | - await getVolumeGroupData(volumeGroupId); |
| 138 | + const volumeGroupData = await getVolumeGroupData(volumeGroupId); |
| 139 | + const originalStartDate = volumeGroupData.startDate; |
| 140 | + const originalEndDate = volumeGroupData.endDate; |
138 | 141 |
|
139 | 142 | const [futureStartDate] = new Date(Date.now() + 24 * 60 * 60 * 1000) |
140 | 143 | .toISOString() |
|
0 commit comments