From 90cbbb694f0bd2607bafef68ee9b5f467b4da96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E4=BC=9F=E6=9D=B0?= <674416404@qq.com> Date: Thu, 5 Dec 2024 15:36:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=20=E8=BF=98=E5=8E=9F=20pr=2046=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9A=84=E6=AD=A3=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/__snapshots__/generatorLog.test.ts.snap | 1 - test/__snapshots__/regexp.test.ts.snap | 6 ------ test/regexp.test.ts | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/test/__snapshots__/generatorLog.test.ts.snap b/test/__snapshots__/generatorLog.test.ts.snap index c9613b9..38f0272 100644 --- a/test/__snapshots__/generatorLog.test.ts.snap +++ b/test/__snapshots__/generatorLog.test.ts.snap @@ -21,7 +21,6 @@ exports[`generatorLog > : generatorLogStart 1`] = ` - \`A\`: a bug fix label in hotfix @liweijie0812 ([#29](https://github.com/TDesignOteam/tdesign-changelog-action/pull/29)) - \`A\`: a bug fix label in bug @liweijie0812 ([#29](https://github.com/TDesignOteam/tdesign-changelog-action/pull/29)) - \`CHANGELOG_REG\`: 修复日志冒号前面有空格正则匹配不到 @liweijie0812 ([#29](https://github.com/TDesignOteam/tdesign-changelog-action/pull/29)) -- \`CHANGELOG_REG\`: 修复日志冒号后面没空格正则匹配不到 @liweijie0812 ([#29](https://github.com/TDesignOteam/tdesign-changelog-action/pull/29)) - \`test-test\`: test-test @liweijie0812 ([#29](https://github.com/TDesignOteam/tdesign-changelog-action/pull/29)) ### 📈 Performance - \`I\`: a refactor label in refactor @liweijie0812 ([#29](https://github.com/TDesignOteam/tdesign-changelog-action/pull/29)) diff --git a/test/__snapshots__/regexp.test.ts.snap b/test/__snapshots__/regexp.test.ts.snap index c795b91..b03ec03 100644 --- a/test/__snapshots__/regexp.test.ts.snap +++ b/test/__snapshots__/regexp.test.ts.snap @@ -104,12 +104,6 @@ exports[`regexp > : CHANGELOG_REG 1`] = ` "CHANGELOG_REG", "修复日志冒号前面有空格正则匹配不到", ], - [ - "- fix(CHANGELOG_REG):修复日志冒号后面没空格正则匹配不到", - "fix", - "CHANGELOG_REG", - "修复日志冒号后面没空格正则匹配不到", - ], [ "- fix(test-test): test-test", "fix", diff --git a/test/regexp.test.ts b/test/regexp.test.ts index 917b452..6a14cac 100644 --- a/test/regexp.test.ts +++ b/test/regexp.test.ts @@ -10,7 +10,7 @@ describe('regexp', () => { const result = changelog.matchAll(CHANGELOG_REG) const arr = [...result] - expect(arr.length).toBe(21) + expect(arr.length).toBe(20) expect(arr).toMatchSnapshot() })