Fix i18n lint rule with emoji->emojify component

This commit is contained in:
Jamie Kyle
2023-06-14 17:57:04 -07:00
committed by GitHub
parent 35e07832a6
commit 5e8c22bf28
7 changed files with 48 additions and 21 deletions

View File

@@ -81,19 +81,19 @@ const tests: Record<string, Test> = {
expectErrors: ['wrapEmoji'],
},
'icu:wrapEmoji:2': {
messageformat: '<emoji>👩 extra</emoji>',
messageformat: '<emojify>👩 extra</emojify>',
expectErrors: ['wrapEmoji'],
},
'icu:wrapEmoji:3': {
messageformat: '<emoji>👩👩</emoji>',
messageformat: '<emojify>👩👩</emojify>',
expectErrors: ['wrapEmoji'],
},
'icu:wrapEmoji:4': {
messageformat: '<emoji>{emoji}</emoji>',
messageformat: '<emojify>{emoji}</emojify>',
expectErrors: ['wrapEmoji'],
},
'icu:wrapEmoji:5': {
messageformat: '<emoji>👩</emoji>',
messageformat: '<emojify>👩</emojify>',
expectErrors: [],
},
};