Skip to content

Commit cf001e2

Browse files
committed
Update dependencies.
1 parent 90a2c32 commit cf001e2

File tree

6 files changed

+23487
-30877
lines changed

6 files changed

+23487
-30877
lines changed

__tests__/graalvm.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ test('request invalid version/javaVersion', async () => {
1818
try {
1919
await graalvm.setUpGraalVMRelease('', combination[0], combination[1])
2020
} catch (err) {
21+
if (!(err instanceof Error)) {
22+
fail(`Unexpected non-Erro: ${err}`)
23+
}
2124
error = err
2225
}
2326

@@ -39,13 +42,19 @@ test('find version/javaVersion', async () => {
3942
const invalidRelease = {...latestRelease, tag_name: 'invalid'}
4043
findGraalVMVersion(invalidRelease)
4144
} catch (err) {
45+
if (!(err instanceof Error)) {
46+
fail(`Unexpected non-Erro: ${err}`)
47+
}
4248
error = err
4349
}
4450
expect(error.message).toContain('Could not find latest GraalVM release:')
4551

4652
try {
4753
findHighestJavaVersion(latestRelease, 'invalid')
4854
} catch (err) {
55+
if (!(err instanceof Error)) {
56+
fail(`Unexpected non-Erro: ${err}`)
57+
}
4958
error = err
5059
}
5160
expect(error.message).toContain('Could not find highest Java version.')

0 commit comments

Comments
 (0)