mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 02:16:45 +00:00
Touchup test
This commit is contained in:
parent
55c6a35c07
commit
48fc7b1818
1 changed files with 11 additions and 1 deletions
|
@ -109,6 +109,16 @@ describe('installer tests', () => {
|
||||||
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…
Add table
Add a link
Reference in a new issue