Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function generateTestCondition(code: string): PromotionCondition {
return new PromotionCondition({
code,
description: [{ languageCode: LanguageCode.en, value: `description for ${code}` }],
args: { arg: { type: 'int' } },
check: (order, args) => true,
});
}