We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcc1105 commit 98fc749Copy full SHA for 98fc749
1 file changed
test/includes.test.js
@@ -0,0 +1,28 @@
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
13
+ test('fix: bbbbbbbbb', () => {
14
+ expect(reg.test('fix: bbbbbbbbb')).toBeTruthy()
15
16
17
18
19
+ test('fix: ccccccccc', () => {
20
+ expect(reg.test('fix: ccccccccc')).toBeTruthy()
21
22
23
24
25
+ test('fix: ddddddddd', () => {
26
+ expect(reg.test('fix: ddddddddd')).toBeTruthy()
27
28
0 commit comments