Skip to content

Commit

Permalink
chore: 还原 pr 46 修改的正则
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Dec 5, 2024
1 parent f65ed8f commit 90cbbb6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion test/__snapshots__/generatorLog.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 0 additions & 6 deletions test/__snapshots__/regexp.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ exports[`regexp > : CHANGELOG_REG 1`] = `
"CHANGELOG_REG",
"修复日志冒号前面有空格正则匹配不到",
],
[
"- fix(CHANGELOG_REG):修复日志冒号后面没空格正则匹配不到",
"fix",
"CHANGELOG_REG",
"修复日志冒号后面没空格正则匹配不到",
],
[
"- fix(test-test): test-test",
"fix",
Expand Down
2 changes: 1 addition & 1 deletion test/regexp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check failure on line 13 in test/regexp.test.ts

View workflow job for this annotation

GitHub Actions / test

test/regexp.test.ts > regexp > : CHANGELOG_REG

AssertionError: expected 21 to be 20 // Object.is equality - Expected + Received - 20 + 21 ❯ test/regexp.test.ts:13:24
expect(arr).toMatchSnapshot()
})

Expand Down

0 comments on commit 90cbbb6

Please sign in to comment.