Cómo escribir Jest UnitTestCases para el siguiente código
let nodeTypePath = ''; if (data.node_type === 'TENANT') { nodeTypePath = 'tenants'; } else if (data.node_type === 'ORGANIZATION') { nodeTypePath = 'organizations'; } else { throw new Error('node_type must be either TENANT or ORGANIZATION', ); }