mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
fix cache restore tests
This commit is contained in:
parent
f3bb768479
commit
07c09af2d5
1 changed files with 2 additions and 4 deletions
|
@ -63,11 +63,9 @@ describe('restore-cache', () => {
|
||||||
it.each(['npm', 'pip2', 'pip21', 'pip21.3', 'pipenv32'])(
|
it.each(['npm', 'pip2', 'pip21', 'pip21.3', 'pipenv32'])(
|
||||||
'Throw an error because %s is not supported',
|
'Throw an error because %s is not supported',
|
||||||
async packageManager => {
|
async packageManager => {
|
||||||
await expect(
|
expect(() =>
|
||||||
getCacheDistributor(packageManager, '3.8.12', undefined)
|
getCacheDistributor(packageManager, '3.8.12', undefined)
|
||||||
).rejects.toThrowError(
|
).toThrowError(`Caching for '${packageManager}' is not supported`);
|
||||||
`Caching for '${packageManager}' is not supported`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue