Retain spaces within label (#95)

This commit is contained in:
Pavish Kumar
2021-10-08 17:47:46 +05:30
committed by GitHub
parent b279a61c36
commit 9e9a90b41e
3 changed files with 16 additions and 2 deletions

View File

@@ -41,6 +41,20 @@ describe('getIssueOption', () => {
}
expect(issue.getIssueOption('hi')).toEqual(expected)
})
test('with label containing spaces', () => {
process.env.INPUT_ISSUE_TITLE = 'npm audit found vulnerabilities'
process.env.INPUT_ISSUE_ASSIGNEES = 'alice'
process.env.INPUT_ISSUE_LABELS = 'status: ready, work: frontend'
const expected: IssueOption = {
title: 'npm audit found vulnerabilities',
body: 'hi',
assignees: ['alice'],
labels: ['status: ready', 'work: frontend']
}
expect(issue.getIssueOption('hi')).toEqual(expected)
})
})
describe('getExistingIssueNumber', () => {