mirror of
https://github.com/actions/labeler.git
synced 2025-12-11 20:24:51 +00:00
Fix tests
This commit is contained in:
@@ -23,7 +23,7 @@ const configureInput = (
|
|||||||
'repo-token': string;
|
'repo-token': string;
|
||||||
'configuration-path': string;
|
'configuration-path': string;
|
||||||
'sync-labels': boolean;
|
'sync-labels': boolean;
|
||||||
dot: string;
|
dot: boolean;
|
||||||
}>
|
}>
|
||||||
) => {
|
) => {
|
||||||
jest
|
jest
|
||||||
@@ -55,7 +55,7 @@ describe('run', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('(with dot: true) adds labels to PRs that match our glob patterns', async () => {
|
it('(with dot: true) adds labels to PRs that match our glob patterns', async () => {
|
||||||
configureInput({dot: 'true'});
|
configureInput({dot: true});
|
||||||
usingLabelerConfigYaml('only_pdfs.yml');
|
usingLabelerConfigYaml('only_pdfs.yml');
|
||||||
mockGitHubResponseChangedFiles('.foo.pdf');
|
mockGitHubResponseChangedFiles('.foo.pdf');
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ describe('run', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('(with dot: true) does not add labels to PRs that do not match our glob patterns', async () => {
|
it('(with dot: true) does not add labels to PRs that do not match our glob patterns', async () => {
|
||||||
configureInput({dot: 'true'});
|
configureInput({dot: true});
|
||||||
usingLabelerConfigYaml('only_pdfs.yml');
|
usingLabelerConfigYaml('only_pdfs.yml');
|
||||||
mockGitHubResponseChangedFiles('foo.txt');
|
mockGitHubResponseChangedFiles('foo.txt');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user