Skip to content

Commit ca1fb80

Browse files
committed
refactor: replace console.log with console.info for emoji tests
1 parent 45361a5 commit ca1fb80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/webapp/utils/emojis.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,20 @@ export const testEmojiDetection = () => {
8888
{ input: '', expected: false }
8989
]
9090

91-
console.log('Testing emoji detection:')
91+
console.info('Testing emoji detection:')
9292
testCases.forEach(({ input, expected }) => {
9393
const result = isOnlyEmoji(input)
94-
console.log(
94+
console.info(
9595
`"${input}": ${result === expected ? '✅' : '❌'} (got ${result}, expected ${expected})`
9696
)
9797
})
9898

9999
// Test emoji splitting
100-
console.log('\nTesting emoji splitting:')
100+
console.info('\nTesting emoji splitting:')
101101
const splitTestCases = ['😀', '👨‍🦰', '👨‍👩‍👧‍👦', '🇺🇸', '👍🏽', '👨‍🦰🫵🫶🚵‍♂️', '😀😂🤣']
102102

103103
splitTestCases.forEach((input) => {
104104
const result = splitEmojis(input)
105-
console.log(`"${input}" → ${result.length} emojis: [${result.join(', ')}]`)
105+
console.info(`"${input}" → ${result.length} emojis: [${result.join(', ')}]`)
106106
})
107107
}

0 commit comments

Comments
 (0)