Skip to content

Commit 325ec8e

Browse files
committed
CCM-14190: prevent creation of adhoc global variants in tests
1 parent e081d41 commit 325ec8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test-team/helpers/db/letter-variant-storage-helper.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ export class LetterVariantStorageHelper {
119119
}
120120

121121
public async createLetterVariant(variant: LetterVariant) {
122+
if (!variant.clientId) {
123+
throw new Error('Do not create ad-hoc global letter variants in tests.');
124+
}
125+
122126
await Promise.all([
123127
this.dynamo.send(
124128
new PutCommand({

0 commit comments

Comments
 (0)