mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
Fix test expectation
This commit is contained in:
parent
2d1721088f
commit
0e0e57bbb3
1 changed files with 6 additions and 2 deletions
|
@ -98,8 +98,12 @@ describe('dependency cache', () => {
|
||||||
await restore('maven', 'YYYY-MM');
|
await restore('maven', 'YYYY-MM');
|
||||||
expect(spyCacheRestore).toBeCalledWith(
|
expect(spyCacheRestore).toBeCalledWith(
|
||||||
[expect.stringContaining('/.m2/repository')],
|
[expect.stringContaining('/.m2/repository')],
|
||||||
expect.stringContaining('setup-java-YYYY-MM-macOS-maven-'),
|
expect.stringContaining(`setup-java-YYYY-MM-${process.env['RUNNER_OS']}-maven-`),
|
||||||
['setup-java-YYYY-MM-macOS-maven-', 'setup-java-YYYY-MM-macOS-', 'setup-java-YYYY-MM-']
|
[
|
||||||
|
`setup-java-YYYY-MM-${process.env['RUNNER_OS']}-maven-`,
|
||||||
|
`setup-java-YYYY-MM-${process.env['RUNNER_OS']}-`,
|
||||||
|
'setup-java-YYYY-MM-'
|
||||||
|
]
|
||||||
);
|
);
|
||||||
expect(spyWarning).not.toBeCalled();
|
expect(spyWarning).not.toBeCalled();
|
||||||
expect(spyInfo).toBeCalledWith('maven cache is not found');
|
expect(spyInfo).toBeCalledWith('maven cache is not found');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue