-
Notifications
You must be signed in to change notification settings - Fork 9
/
without-payment-test.js
20 lines (18 loc) · 1.03 KB
/
without-payment-test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const { FeatureHelper } = require('../../../../helpers/feature-helper');
const { multipleOpportunityCriteriaTemplateWhichOnlyIncludesOneCriteria, successTests } = require('../../common');
const testOpportunityCriteria = 'TestOpportunityBookableNonFreePrepaymentOptional';
const expectedPrepayment = 'https://openactive.io/Optional';
const bReqTemplateRef = 'noPayment';
FeatureHelper.describeFeature(module, {
testCategory: 'payment',
testFeature: 'prepayment-optional',
testFeatureImplemented: true,
testIdentifier: 'without-payment',
testName: 'Prepayment optional, without `payment` supplied, is successful',
testDescription: 'Opportunity paid, prepayment optional, no `payment` (error)',
testOpportunityCriteria,
controlOpportunityCriteria: 'TestOpportunityBookable',
// temporarily disable control in multiple mode until refactoring complete
multipleOpportunityCriteriaTemplate: multipleOpportunityCriteriaTemplateWhichOnlyIncludesOneCriteria(testOpportunityCriteria),
},
successTests(expectedPrepayment, bReqTemplateRef));