Skip to content

Commit 41fbf7a

Browse files
committed
Fixed tests
1 parent caa6073 commit 41fbf7a

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/server/plugins/engine/outputFormatters/adapter/v1.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ describe('Adapter v1 formatter', () => {
249249
exampleField: 'hello world',
250250
exampleField2: 'hello world'
251251
},
252+
payments: {},
252253
repeaters: {
253254
exampleRepeat: [
254255
{

src/server/plugins/engine/outputFormatters/machine/v2.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ describe('getPersonalisation', () => {
233233
exampleField: 'hello world',
234234
exampleField2: 'hello world'
235235
},
236+
payments: {},
236237
repeaters: {
237238
exampleRepeat: [
238239
{
@@ -291,6 +292,7 @@ describe('getPersonalisation', () => {
291292
main: {
292293
orderType: 'delivery'
293294
},
295+
payments: {},
294296
repeaters: {
295297
pizza: [
296298
{

src/server/plugins/engine/types/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const formAdapterSubmissionMessageDataSchema =
4343
Joi.object<FormAdapterSubmissionMessageData>().keys({
4444
main: Joi.object(),
4545
repeaters: Joi.object(),
46+
payments: Joi.object(),
4647
files: Joi.object().pattern(
4748
Joi.string(),
4849
Joi.array().items(

0 commit comments

Comments
 (0)