import { executeTest } from './decisionTestcaseProcessor.js' import { ValidatorObject } from './ValidatorObject.js' /** * In this case the reference does not have a field name. * So we need to check the complete data of the target table */ const expected = { rangeObject: { '1-1': { source: { 'Field 2': ':a>' }, target: { email: '', 'first-name': '', 'last-name': '' } }, '1-2': { source: { 'Field 2': ':a>' }, target: { email: '', 'first-name': '', 'last-name': '' } }, '1-3': { source: { 'Field 2': ':a>' }, target: { email: '', 'first-name': '', 'last-name': '' } }, '2-1': { source: { 'Field 2': ':b>' }, target: { email: '', 'first-name': '', 'last-name': '' } }, '2-2': { source: { 'Field 2': ':b>' }, target: { email: '', 'first-name': '', 'last-name': '' } } } } const testDefinition = { excelFileName: 'dt_range.xls', excelTableNames: ['multiplicity', 'rangeObject'], validator: new ValidatorObject({ expected, targetTableName: 'multiplicity' }), tableName: 'rangeObject' } executeTest(testDefinition)