mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Update installer.test.ts
This commit is contained in:
parent
3cead9f6ad
commit
b3288c7098
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue