()
| 9 | include(inc, contents, 'id', () => { |
| 10 | const dobDate = new Date(contents.dob.date); |
| 11 | const genSVNR = () => { |
| 12 | const pension = [ |
| 13 | '02', '03', '04', '08', '09', '10', '11', |
| 14 | '12', '13', '14', '15', '16', '17', '18', |
| 15 | '19', '20', '21', '23', '24', '25', '26', |
| 16 | '28', '29', '38', '39', '40', '42', '43', |
| 17 | '44', '45', '46', '47', '48', '49', '50', |
| 18 | '51', '52', '53', '54', '55', '56', '57', |
| 19 | '58', '59', '60', '61', '62', '63', '64', |
| 20 | '65', '66', '67', '68', '69', '70', '71', |
| 21 | '72', '73', '74', '75', '76', '77', '78', |
| 22 | '79', '80', '81', '82', '89' |
| 23 | ]; |
| 24 | return `${randomItem(pension)} ${pad(dobDate.getDate(), 2)}${pad(dobDate.getMonth() + 1, 2)}${dobDate.getYear()} ${contents.name.last[0]} ${contents.gender === 'male' ? pad(range(0,49), 2) : pad(range(50, 99), 2)}${range(0, 9)}`; |
| 25 | }; |
| 26 | contents.id = { |
| 27 | name: 'SVNR', |
| 28 | value: genSVNR() |
no test coverage detected