Fix tests

This commit is contained in:
Alexander Kachkaev
2023-05-31 01:50:00 +01:00
parent a27020c135
commit 44414dbc7d

View File

@@ -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');