mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
Touchup test
This commit is contained in:
parent
55c6a35c07
commit
48fc7b1818
1 changed files with 11 additions and 1 deletions
|
@ -108,7 +108,17 @@ describe('installer tests', () => {
|
|||
expect(fs.existsSync(`${JavaDir}.complete`)).toBe(true);
|
||||
expect(fs.existsSync(path.join(JavaDir, 'bin'))).toBe(true);
|
||||
}, 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 () => {
|
||||
let thrown = false;
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue