Skip to content

Commit

Permalink
fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
breautek committed Jan 17, 2021
1 parent 3a25d7b commit 14975fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/unit/java.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ describe('Java', () => {
await Java._ensure(env);

expect(env.JAVA_HOME).withContext('JAVA_HOME').toBe(jdkDir);
expect(env.PATH.split(path.delimiter))
.toContain(path.join(jdkDir, 'bin'));
expect(env.PATH).toContain(jdkDir);
});

it('detects JDK in default location on windows (x86)', async () => {
Expand All @@ -107,8 +106,7 @@ describe('Java', () => {
await Java._ensure(env);

expect(env.JAVA_HOME).withContext('JAVA_HOME').toBe(jdkDir);
expect(env.PATH.split(path.delimiter))
.toContain(path.join(jdkDir, 'bin'));
expect(env.PATH).toContain(jdkDir);
});

it('without JAVA_HOME / with javac - Mac OS X - success', async () => {
Expand Down

0 comments on commit 14975fd

Please sign in to comment.