From 2825f3b055c0738454e94a02db1f55fff91b1771 Mon Sep 17 00:00:00 2001 From: John Teague Date: Tue, 14 May 2024 12:41:06 -0500 Subject: [PATCH] removed console statements --- src/process/__tests__/process.test.ts | 4 ---- src/process/filter/index.ts | 9 --------- 2 files changed, 13 deletions(-) diff --git a/src/process/__tests__/process.test.ts b/src/process/__tests__/process.test.ts index e12c872c..bed7583c 100644 --- a/src/process/__tests__/process.test.ts +++ b/src/process/__tests__/process.test.ts @@ -1050,8 +1050,6 @@ describe('Process Tests', () => { submission.data = context.data; context.processors = ProcessTargets.evaluator; processSync(context); - console.log('errors:', context.scope.errors); - assert.equal(context.scope.errors.length, 0); }); it('should remove submission data not in a nested form definition', async function () { @@ -1116,8 +1114,6 @@ describe('Process Tests', () => { } }; processSync(context); - - expect(context.data.child.data).to.not.have.property('invalid'); diff --git a/src/process/filter/index.ts b/src/process/filter/index.ts index b52224e1..7fb49907 100644 --- a/src/process/filter/index.ts +++ b/src/process/filter/index.ts @@ -49,25 +49,16 @@ export const filterProcess: ProcessorFn = async (context: FilterCon export const filterPostProcess: ProcessorFnSync = (context: FilterContext) => { const { scope, submission } = context; - console.log('filterPostProcess: context', Object.keys(context)); - console.dir(context.components) - const filtered = {}; for (const path in scope.filter) { - console.log('filterPostProcess path:', path); const pathFilter = scope.filter[path]; if (pathFilter) { - let value = get(submission?.data, path) as any; - console.log('path filter:', scope.filter[path]); - console.log('path value:', value); // dataObject types (nested form) paths are recursively added to the scope.filter // excluding those from this and setting their components onto the submission directly if (pathFilter.compModelType !== 'dataObject') { set(filtered, path, value); - } else { - console.log('skipping path:', path, 'value:', value) } } }