Touchup test

This commit is contained in:
Gil Tene 2019-11-02 21:30:28 -07:00
parent 55c6a35c07
commit 48fc7b1818

View file

@ -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 {