From 3584746e2fcfe4cea19857c5b3f11b9d1fe5d57a Mon Sep 17 00:00:00 2001 From: Luke Winship Date: Mon, 7 Aug 2023 14:04:29 +0100 Subject: [PATCH] fix npm test --- .../implemented/opportunity-free-idempotency-test.js | 2 +- .../implemented/opportunity-free-without-checkpoints-test.js | 2 +- .../implemented/opportunity-paid-idempotency-test.js | 2 +- .../implemented/opportunity-paid-without-checkpoints-test.js | 2 +- ...o-consumer-tax-calculation-gross-without-checkpoints-test.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-idempotency-test.js b/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-idempotency-test.js index 169bf688ae..e5c062537e 100644 --- a/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-idempotency-test.js +++ b/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-idempotency-test.js @@ -11,7 +11,7 @@ FeatureHelper.describeFeature(module, { testOpportunityCriteria: 'TestOpportunityBookableFree', // This must also be TestOpportunityBookableFree as the entire Order must be free. controlOpportunityCriteria: 'TestOpportunityBookableFree', -}, (configuration, orderItemCriteriaList, featureIsImplemented, logger, opportunityType, bookingFlow) => { +}, (configuration, orderItemCriteriaList, featureIsImplemented, logger) => { const { fetchOpportunities, bookRecipe, defaultFlowStageParams, bookRecipeGetFirstStageInput, bookRecipeGetAssertOpportunityCapacityInput } = FlowStageRecipes.initialiseSimpleC1C2BookFlow(orderItemCriteriaList, logger); const idempotentRepeatB = FlowStageRecipes.idempotentRepeatBAfterBook(orderItemCriteriaList, bookRecipe, defaultFlowStageParams, { getFirstStageInput: bookRecipeGetFirstStageInput, diff --git a/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-without-checkpoints-test.js b/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-without-checkpoints-test.js index ffa61d153f..77d8f3d035 100644 --- a/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-without-checkpoints-test.js +++ b/packages/openactive-integration-tests/test/features/payment/free-opportunities/implemented/opportunity-free-without-checkpoints-test.js @@ -12,7 +12,7 @@ FeatureHelper.describeFeature(module, { testOpportunityCriteria: 'TestOpportunityBookableFree', // This must also be TestOpportunityBookableFree as the entire Order must be free. controlOpportunityCriteria: 'TestOpportunityBookableFree', -}, (configuration, orderItemCriteriaList, featureIsImplemented, logger, opportunityType, bookingFlow) => { +}, (configuration, orderItemCriteriaList, featureIsImplemented, logger) => { const { fetchOpportunities, bookRecipe, defaultFlowStageParams, bookRecipeGetFirstStageInput, bookRecipeGetAssertOpportunityCapacityInput } = FlowStageRecipes.initialiseSimpleBookOnlyFlow(orderItemCriteriaList, logger); const idempotentRepeatB = FlowStageRecipes.idempotentRepeatBAfterBook(orderItemCriteriaList, bookRecipe, defaultFlowStageParams, { getFirstStageInput: bookRecipeGetFirstStageInput, diff --git a/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-idempotency-test.js b/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-idempotency-test.js index 4c51bdc9d2..e824b0f3e9 100644 --- a/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-idempotency-test.js +++ b/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-idempotency-test.js @@ -11,7 +11,7 @@ FeatureHelper.describeFeature(module, { testOpportunityCriteria: 'TestOpportunityBookableNonFree', controlOpportunityCriteria: 'TestOpportunityBookable', }, -(configuration, orderItemCriteriaList, featureIsImplemented, logger, opportunityType, bookingFlow) => { +(configuration, orderItemCriteriaList, featureIsImplemented, logger) => { // Initiate Flow Stages const { fetchOpportunities, bookRecipe, defaultFlowStageParams, bookRecipeGetFirstStageInput, bookRecipeGetAssertOpportunityCapacityInput } = FlowStageRecipes.initialiseSimpleC1C2BookFlow(orderItemCriteriaList, logger); const idempotentRepeatB = FlowStageRecipes.idempotentRepeatBAfterBook(orderItemCriteriaList, bookRecipe, defaultFlowStageParams, { diff --git a/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-without-checkpoints-test.js b/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-without-checkpoints-test.js index d9236fa9d1..d06bc7f3d7 100644 --- a/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-without-checkpoints-test.js +++ b/packages/openactive-integration-tests/test/features/payment/non-free-opportunities/implemented/opportunity-paid-without-checkpoints-test.js @@ -19,7 +19,7 @@ FeatureHelper.describeFeature(module, { runOnlyIf: !IMPLEMENTED_FEATURES['business-to-consumer-tax-calculation-gross'] && !IMPLEMENTED_FEATURES['business-to-consumer-tax-calculation-net'], }, -(configuration, orderItemCriteriaList, featureIsImplemented, logger, opportunityType, bookingFlow) => { +(configuration, orderItemCriteriaList, featureIsImplemented, logger) => { // Initiate Flow Stages const { fetchOpportunities, bookRecipe, defaultFlowStageParams, bookRecipeGetFirstStageInput, bookRecipeGetAssertOpportunityCapacityInput } = FlowStageRecipes.initialiseSimpleBookOnlyFlow(orderItemCriteriaList, logger); const idempotentRepeatB = FlowStageRecipes.idempotentRepeatBAfterBook(orderItemCriteriaList, bookRecipe, defaultFlowStageParams, { diff --git a/packages/openactive-integration-tests/test/features/tax/business-to-consumer-tax-calculation-gross/implemented/business-to-consumer-tax-calculation-gross-without-checkpoints-test.js b/packages/openactive-integration-tests/test/features/tax/business-to-consumer-tax-calculation-gross/implemented/business-to-consumer-tax-calculation-gross-without-checkpoints-test.js index 6fe27a2099..09bf9d7837 100644 --- a/packages/openactive-integration-tests/test/features/tax/business-to-consumer-tax-calculation-gross/implemented/business-to-consumer-tax-calculation-gross-without-checkpoints-test.js +++ b/packages/openactive-integration-tests/test/features/tax/business-to-consumer-tax-calculation-gross/implemented/business-to-consumer-tax-calculation-gross-without-checkpoints-test.js @@ -13,7 +13,7 @@ FeatureHelper.describeFeature(module, { testOpportunityCriteria: 'TestOpportunityBookableNonFreeTaxGross', // the simple tests can only work if all OrderItems have the same tax mode controlOpportunityCriteria: 'TestOpportunityBookableNonFreeTaxGross', -}, (configuration, orderItemCriteriaList, featureIsImplemented, logger, opportunityType, bookingFlow) => { +}, (configuration, orderItemCriteriaList, featureIsImplemented, logger) => { const { fetchOpportunities, bookRecipe, defaultFlowStageParams, bookRecipeGetFirstStageInput, bookRecipeGetAssertOpportunityCapacityInput } = FlowStageRecipes.initialiseSimpleBookOnlyFlow(orderItemCriteriaList, logger); const idempotentRepeatB = FlowStageRecipes.idempotentRepeatBAfterBook(orderItemCriteriaList, bookRecipe, defaultFlowStageParams, { getFirstStageInput: bookRecipeGetFirstStageInput,