From 2cba4c1044d3756b58060aa2f5c5bc421566b780 Mon Sep 17 00:00:00 2001 From: Leif Bredgaard Honore Date: Mon, 12 Sep 2022 14:35:07 +0200 Subject: [PATCH 1/2] Updated carbone types options with missing fields Added fields for * factories * startFactory * attempts --- types/carbone/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/carbone/index.d.ts b/types/carbone/index.d.ts index 00cd657222080a..471ca978778c60 100644 --- a/types/carbone/index.d.ts +++ b/types/carbone/index.d.ts @@ -54,6 +54,9 @@ export interface Options { currencySource?: string | undefined; currencyTarget?: string | undefined; currencyRates?: CurrencyRates | undefined; + factories?: number | undefined; + startFactory?: boolean | undefined; + attempts?: number | undefined; } export function set(options: Options): void; export function reset(): void; From fdfc022148d4a5a1167a35192290569ee324772c Mon Sep 17 00:00:00 2001 From: Leif Bredgaard Honore Date: Mon, 12 Sep 2022 14:41:50 +0200 Subject: [PATCH 2/2] Updated carbone tests with new fields --- types/carbone/carbone-tests.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/carbone/carbone-tests.ts b/types/carbone/carbone-tests.ts index 2e734c5c05ca99..8b6e78a653f25e 100644 --- a/types/carbone/carbone-tests.ts +++ b/types/carbone/carbone-tests.ts @@ -9,6 +9,9 @@ const lang = 'pl'; const timezone = 'Asia/Tokyo'; const tempPath = '/tmp'; const templatePath = './templates'; +const factories = 2; +const startFactory = true; +const attempts = 2; const emptyCurrencyRates = {}; const currencyRates = { @@ -68,6 +71,9 @@ const options: carbone.Options = { currencySource, currencyTarget, currencyRates, + factories, + startFactory, + attempts }; const emptyRenderOptions: carbone.RenderOptions = {};