()
| 440 | const order = ['adjective', 'noun', 'numbers']; |
| 441 | |
| 442 | export function generateSlug() { |
| 443 | const selected = order.map((partOfSpeech) => { |
| 444 | const choices = words[partOfSpeech]; |
| 445 | return choices[Math.floor(Math.random() * choices.length)]; |
| 446 | }); |
| 447 | const slug = selected.join('-'); |
| 448 | return slug; |
| 449 | } |
| 450 | |
| 451 | export function totalUniqueSlugs() { |
| 452 | const numAdjectives = adjective.length; |
no test coverage detected