Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian committed Aug 29, 2024
1 parent c4ae409 commit 0fec536
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
FLAG_RE,
isCode,
fuzzyCompare,
normalizeName,
codeToName,
codeToFlag,
nameToCode,
Expand Down Expand Up @@ -51,3 +52,7 @@ test('nameToCode() is exported properly', t => {
test('flagToCode() is exported properly', t => {
t.is(typeof flagToCode, 'function', 'flagToCode should be a function');
});

test('normalizeName() can handle undefined', t => {
t.is(normalizeName(undefined), undefined, 'normalizeName(undefined) should return undefined');
});

0 comments on commit 0fec536

Please sign in to comment.