1
0
Fork 0

minor code coverage

This commit is contained in:
Cadence Ember 2023-08-24 17:23:32 +12:00
parent c56e92ccfb
commit 1e9e9685c5
4 changed files with 16 additions and 2 deletions

View file

@ -39,6 +39,7 @@ function* generateLocalpartAlternatives(preferences) {
let i = 2
while (true) {
yield best + (i++)
/* c8 ignore next */
}
}
@ -69,7 +70,7 @@ function userToSimName(user) {
for (const suggestion of generateLocalpartAlternatives(preferences)) {
if (!matches.includes(suggestion)) return suggestion
}
/* c8 ignore next */
throw new Error(`Ran out of suggestions when generating sim name. downcased: "${downcased}"`)
}