mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 09:51:47 +00:00
Update installer.test.ts
This commit is contained in:
parent
3cead9f6ad
commit
b3288c7098
@ -109,6 +109,16 @@ describe('installer tests', () => {
|
||||
expect(fs.existsSync(path.join(JavaDir, 'bin'))).toBe(true);
|
||||
}, 100000);
|
||||
|
||||
it('Throws if invalid java packge specified', async () => {
|
||||
let thrown = false;
|
||||
try {
|
||||
await installer.getJava('8.0.222', 'x64', '', 'badjdk');
|
||||
} catch {
|
||||
thrown = true;
|
||||
}
|
||||
expect(thrown).toBe(true);
|
||||
});
|
||||
|
||||
it('Throws if invalid directory to jdk', async () => {
|
||||
let thrown = false;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user