cityssm / general-licence-manager

Lines not covered in tests TCV-001
Coverage
Critical
a month ago3 months old
Lines not covered in tests
186                break;
187            }
188            default: {
189                return undefined;190            }
191        }
192    }
Lines not covered in tests
155                }
156                if (reportParameters.batchDateString &&
157                    reportParameters.batchDateString !== '') {
158                    dateFilter = ' and t.batchDate = ?';159                    sqlParameters.push(dateTimeFunctions.dateStringToInteger(reportParameters.batchDateString));160                }
161                sql = `select c.licenceCategory as ${licenceCategory},
162            l.licenceNumber as ${licenceNumber},
Lines not covered in tests
 85            case 'licences-formatted': {
 86                let issuedFilter = '';
 87                if (reportParameters.issued && reportParameters.issued !== '') {
 88                    issuedFilter = 89                        reportParameters.issued === 'false' 90                            ? ' and l.issueDate is null' 91                            : ' and l.issueDate is not null'; 92                }
 93                sql = `select l.licenceId as ${licenceId},
 94            c.licenceCategory as ${licenceCategory},
Lines not covered in tests
 68    let sqlParameters = [];
 69    const customReport = getCustomReport(reportName);
 70    if (customReport) {
 71        sql = customReport.sql; 72    }
 73    else {
 74        switch (reportName) {
Lines not covered in tests
43    }
44    let isRenewal = false;
45    if (request.query.isRenewal && request.query.isRenewal !== '') {
46        isRenewal = true;47    }
48    const licence = {
49        licenceId: '',