Do not insert _ after , and : separators in emoji names
Change-Id: Ib822ff9f3b2e9b3633f60020435fc8ab8e237025
diff --git a/test/test.js b/test/test.js
index 9eea567..5177948 100644
--- a/test/test.js
+++ b/test/test.js
@@ -152,4 +152,22 @@
done();
});
+
+ test('Test normalized emoji-name separators in FEATS', (done) => {
+ const testInput = `# foundry = base
+# text_id = test-name-normalization
+# text = 👍🏻 👨👨👦
+1 👍🏻 _ _ _ _ _ _ _ _
+2 👨👨👦 _ _ _ _ _ _ _ _
+
+`;
+ const stdout = execSync('node src/index.js', { input: testInput }).toString();
+
+ expect(stdout).toContain('n=thumbs_up:light_skin_tone');
+ expect(stdout).toContain('n=family:man,man,boy');
+ expect(stdout).not.toContain('n=thumbs_up:_light_skin_tone');
+ expect(stdout).not.toContain('n=family:_man,_man,_boy');
+
+ done();
+ });
});