mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 18:01:46 +00:00
hopefully fixed util tests
This commit is contained in:
parent
ebb46eab94
commit
11c39b61f2
@ -4,7 +4,10 @@ const env = process.env;
|
|||||||
|
|
||||||
describe('util tests', () => {
|
describe('util tests', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
process.env = Object.assign({}, env);
|
const tempEnv = Object.assign({}, env);
|
||||||
|
delete tempEnv.RUNNER_TEMP;
|
||||||
|
delete tempEnv.USERPROFILE;
|
||||||
|
process.env = tempEnv;
|
||||||
Object.defineProperty(process, 'platform', {value: 'linux'});
|
Object.defineProperty(process, 'platform', {value: 'linux'});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user