mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 18:01:46 +00:00
Touchup test
This commit is contained in:
parent
55c6a35c07
commit
48fc7b1818
@ -108,7 +108,17 @@ describe('installer tests', () => {
|
|||||||
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
||||||
expect(fs.existsSync(path.join(JavaDir, 'bin'))).toBe(true);
|
expect(fs.existsSync(path.join(JavaDir, 'bin'))).toBe(true);
|
||||||
}, 100000);
|
}, 100000);
|
||||||
|
|
||||||
|
it('Throws if invalid java package is specified', async () => {
|
||||||
|
let thrown = false;
|
||||||
|
try {
|
||||||
|
await installer.getJava('8.0.222', 'x64', '', 'bad jdk');
|
||||||
|
} catch {
|
||||||
|
thrown = true;
|
||||||
|
}
|
||||||
|
expect(thrown).toBe(true);
|
||||||
|
});
|
||||||
|
|
||||||
it('Throws if invalid directory to jdk', async () => {
|
it('Throws if invalid directory to jdk', async () => {
|
||||||
let thrown = false;
|
let thrown = false;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user