test: ignore more code that jest cannot test (#109)

This commit is contained in:
Nolan Lawson 2020-12-28 18:51:45 -08:00 committed by GitHub
parent 68ddbd770e
commit ae68162637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module.exports = {
statements: 98,
branches: 96,
functions: 100,
lines: 99
lines: 100
}
}
}

View File

@ -105,6 +105,8 @@ const isSkinToneOption = element => /^skintone-/.test(element.id)
//
emojiSupportLevelPromise.then(level => {
// Can't actually test emoji support in Jest/JSDom, emoji never render in color in Cairo
/* istanbul ignore next */
if (!level) {
message = i18n.emojiUnsupportedMessage
}