mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
Default architecture to x86 in test
This commit is contained in:
parent
36a2b1194e
commit
f83416a080
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ describe('setupJava', () => {
|
||||||
expect(spyCoreAddPath).toHaveBeenCalled();
|
expect(spyCoreAddPath).toHaveBeenCalled();
|
||||||
expect(spyCoreExportVariable).toHaveBeenCalled();
|
expect(spyCoreExportVariable).toHaveBeenCalled();
|
||||||
expect(spyCoreExportVariable).toHaveBeenCalledWith(
|
expect(spyCoreExportVariable).toHaveBeenCalledWith(
|
||||||
`JAVA_HOME_${input.version}_${input.architecture.toLocaleUpperCase()}`,
|
`JAVA_HOME_${input.version}_${(input.architecture || 'x86').toLocaleUpperCase()}`,
|
||||||
expected.path
|
expected.path
|
||||||
);
|
);
|
||||||
expect(spyCoreSetOutput).toHaveBeenCalled();
|
expect(spyCoreSetOutput).toHaveBeenCalled();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue