import { getEntities } from './crmManager'; test('getEntities', async () => { const entities = await getEntities([ { entityName: 'evo_baseproduct', where: { statecode: 0, evo_account_type: [123123132] }, whereCmp: { evo_datefrom: { gte: new Date().toString(), lte: 55, }, }, fields: ['evo_id', 'evo_name'], relatedEntities: [ { entityName: 'evo_leasingobject_type', fields: ['evo_id', 'evo_name'], }, ], }, { entityName: 'account', where: { accountid: 'fdf1db27-a0e3-ea11-af4b-00155d020202', }, fields: ['accountid', 'name'], }, ]); console.log(entities); expect(entities).not.toBeUndefined(); });