mirror of
https://github.com/actions/labeler.git
synced 2025-12-14 05:43:42 +00:00
Fix some typos in the branch checks
This commit is contained in:
@@ -21,8 +21,8 @@ describe('getBranchName', () => {
|
||||
|
||||
describe('when no branch is specified', () => {
|
||||
it('returns the head branch name', () => {
|
||||
const result = getBranchName('base');
|
||||
expect(result).toEqual('base-branch-name');
|
||||
const result = getBranchName();
|
||||
expect(result).toEqual('head-branch-name');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -104,7 +104,7 @@ describe('run', () => {
|
||||
expect(removeLabelMock).toHaveBeenCalledTimes(0);
|
||||
});
|
||||
|
||||
it('adds labels based on the branch names that match the glob pattern', async () => {
|
||||
it('adds labels based on the branch names that match the regexp pattern', async () => {
|
||||
github.context.payload.pull_request!.head = {ref: 'test/testing-time'};
|
||||
usingLabelerConfigYaml('branches.yml');
|
||||
await run();
|
||||
@@ -118,7 +118,7 @@ describe('run', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('adds multiple labels based on branch names that match different glob patterns', async () => {
|
||||
it('adds multiple labels based on branch names that match different regexp patterns', async () => {
|
||||
github.context.payload.pull_request!.head = {
|
||||
ref: 'test/feature/123'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user