File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/parser-opts/tests Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ describe('@gitmoji/parser-opts', () => {
8282 expect ( subject ) . toBe ( 'extract parser-opts packages' ) ;
8383 expect ( ticket ) . toBeUndefined ( ) ;
8484 } ) ;
85+
8586 it ( ':sparkles: feat(changelog): 添加中文标题' , ( ) => {
8687 const result = regex . exec ( ':sparkles: feat(changelog): 添加中文标题' ) ;
8788
@@ -92,5 +93,16 @@ describe('@gitmoji/parser-opts', () => {
9293 expect ( subject ) . toBe ( '添加中文标题' ) ;
9394 expect ( ticket ) . toBeUndefined ( ) ;
9495 } ) ;
96+
97+ it ( '💥 feat(unicode): support unicode' , ( ) => {
98+ const result = regex . exec ( '💥 feat(unicode): support unicode' ) ;
99+
100+ expect ( result ) . toHaveLength ( 5 ) ;
101+ const { type, scope, subject, ticket } = result . groups ;
102+ expect ( type ) . toBe ( 'feat' ) ;
103+ expect ( scope ) . toBe ( 'unicode' ) ;
104+ expect ( subject ) . toBe ( 'support unicode' ) ;
105+ expect ( ticket ) . toBeUndefined ( ) ;
106+ } ) ;
95107 } ) ;
96108} ) ;
You can’t perform that action at this time.
0 commit comments