File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ const getConfig = require ( '../src/libs/getConfig' )
2+ const config = getConfig ( )
3+ const { includes } = config
4+ const reg = new RegExp ( includes . join ( '|' ) , 'im' )
5+
6+ describe ( 'Test Include Regexp' , ( ) => {
7+ test ( 'fix: aaaaaaaaa' , ( ) => {
8+ expect ( reg . test ( 'fix: aaaaaaaaa' ) ) . toBeTruthy ( )
9+ } )
10+ } )
11+
12+ describe ( 'Test Include Regexp' , ( ) => {
13+ test ( 'fix: bbbbbbbbb' , ( ) => {
14+ expect ( reg . test ( 'fix: bbbbbbbbb' ) ) . toBeTruthy ( )
15+ } )
16+ } )
17+
18+ describe ( 'Test Include Regexp' , ( ) => {
19+ test ( 'fix: ccccccccc' , ( ) => {
20+ expect ( reg . test ( 'fix: ccccccccc' ) ) . toBeTruthy ( )
21+ } )
22+ } )
23+
24+ describe ( 'Test Include Regexp' , ( ) => {
25+ test ( 'fix: ddddddddd' , ( ) => {
26+ expect ( reg . test ( 'fix: ddddddddd' ) ) . toBeTruthy ( )
27+ } )
28+ } )
You can’t perform that action at this time.
0 commit comments