Skip to content

Commit a133983

Browse files
committed
feat: add bundled JSON file for smiley emojis and update emoji test input
- Introduced a new JSON file containing smiley emoji data. - Updated the emoji test generator to use the new bundled JSON file as input instead of hardcoded values.
1 parent 86fc176 commit a133983

File tree

2 files changed

+30
-27
lines changed

2 files changed

+30
-27
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"group": "Smileys & Emotion",
4+
"subgroups": [
5+
{
6+
"subgroup": "face-smiling",
7+
"entries": [
8+
{
9+
"codePoints": ["1F600"],
10+
"status": "fully-qualified",
11+
"comment": "grinning face"
12+
},
13+
{
14+
"codePoints": ["1F603"],
15+
"status": "fully-qualified",
16+
"comment": "grinning face with big eyes"
17+
},
18+
{
19+
"codePoints": ["1F604"],
20+
"status": "fully-qualified",
21+
"comment": "grinning face with smiling eyes"
22+
}
23+
]
24+
}
25+
]
26+
}
27+
]

src/generators/emoji-test.ts

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { z } from "zod";
2+
import bundledSmileys from "../bundled-json-files/emoji-test-smileys.json";
23
import { createLoom } from "../loom";
34

45
const entry = z.object({
@@ -55,33 +56,8 @@ export const emojiTest = Object.assign(baseEmojiTest, {
5556
version,
5657
separator: ";",
5758
commentPrefix: "#",
58-
input: [
59-
{
60-
group: "Smileys & Emotion",
61-
subgroups: [
62-
{
63-
subgroup: "face-smiling",
64-
entries: [
65-
{
66-
codePoints: ["1F600"],
67-
status: "fully-qualified",
68-
comment: "grinning face",
69-
},
70-
{
71-
codePoints: ["1F603"],
72-
status: "fully-qualified",
73-
comment: "grinning face with big eyes",
74-
},
75-
{
76-
codePoints: ["1F604"],
77-
status: "fully-qualified",
78-
comment: "grinning face with smiling eyes",
79-
},
80-
],
81-
},
82-
],
83-
},
84-
],
59+
// @ts-expect-error asd
60+
input: bundledSmileys,
8561
});
8662
},
8763
skinTone: (version: string): string => {

0 commit comments

Comments
 (0)