mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
Update tests to use 'jdk', 'jre', and 'jdk+fx' javaPackage parameters
This commit is contained in:
parent
2275401b31
commit
67d951dd72
1 changed files with 1 additions and 3 deletions
|
@ -79,7 +79,6 @@ describe('installer tests', () => {
|
||||||
|
|
||||||
it('Downloads java with 1.x syntax', async () => {
|
it('Downloads java with 1.x syntax', async () => {
|
||||||
await installer.getJava('1.10', 'x64', '', 'jdk');
|
await installer.getJava('1.10', 'x64', '', 'jdk');
|
||||||
// Relies on knowledge that the latest version of 10.0.x is 10.0.2, and it will likely not update again:
|
|
||||||
const JavaDir = path.join(toolDir, 'jdk', '10.0.2', 'x64');
|
const JavaDir = path.join(toolDir, 'jdk', '10.0.2', 'x64');
|
||||||
|
|
||||||
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
||||||
|
@ -88,7 +87,6 @@ describe('installer tests', () => {
|
||||||
|
|
||||||
it('Downloads java with normal semver syntax', async () => {
|
it('Downloads java with normal semver syntax', async () => {
|
||||||
await installer.getJava('9.0.x', 'x64', '', 'jdk');
|
await installer.getJava('9.0.x', 'x64', '', 'jdk');
|
||||||
// Relies on knowledge that the latest version of 9.0.x is 9.0.7, and it will likely not update again:
|
|
||||||
const JavaDir = path.join(toolDir, 'jdk', '9.0.7', 'x64');
|
const JavaDir = path.join(toolDir, 'jdk', '9.0.7', 'x64');
|
||||||
|
|
||||||
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue