Skip to content

Commit a3c7267

Browse files
fix tests
1 parent 0b155be commit a3c7267

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

__tests__/distributors/base-installer.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,11 @@ describe('setupJava', () => {
244244
expect(spyGetToolcachePath).toHaveBeenCalled();
245245
expect(spyCoreAddPath).toHaveBeenCalled();
246246
expect(spyCoreExportVariable).toHaveBeenCalled();
247-
expect(spyCoreSetOutput).toHaveBeenCalled();
248-
expect(spyCoreSetOutput).toHaveBeenCalledWith(
249-
`JAVA_HOME_${input.version}_${input.architecture.toUpperCase()}`
247+
expect(spyCoreExportVariable).toHaveBeenCalledWith(
248+
`JAVA_HOME_${input.version}_${input.architecture}`,
249+
expected.path
250250
);
251+
expect(spyCoreSetOutput).toHaveBeenCalled();
251252
expect(spyCoreInfo).toHaveBeenCalledWith('Trying to resolve the latest version from remote');
252253
expect(spyCoreInfo).toHaveBeenCalledWith(`Resolved latest version as ${expected.version}`);
253254
expect(spyCoreInfo).toHaveBeenCalledWith('Trying to download...');

0 commit comments

Comments
 (0)