test: cover hazard severity labels
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ describe('severityFromLabel', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('重大 → major', () => {
|
it('重大 → major', () => {
|
||||||
expect(severityFromLabel('major')).toBe('general')
|
expect(severityFromLabel('重大')).toBe('major')
|
||||||
})
|
})
|
||||||
|
|
||||||
it('unknown input falls back to general', () => {
|
it('unknown input falls back to general', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user