Fix i18n lint rule with emoji->emojify component
This commit is contained in:
parent
35e07832a6
commit
5e8c22bf28
7 changed files with 48 additions and 21 deletions
|
@ -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: [],
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue