Update src/model/cloud-runner/tests/cloud-runner-sync-environment.test.ts

Co-authored-by: Webber Takken <webber@takken.io>
pull/437/head
Frostebite 2022-10-22 18:48:45 +01:00 committed by GitHub
parent 1a3895dcec
commit 2244d0ab53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -11,16 +11,9 @@ import GitHub from '../../github';
import setups from './cloud-runner-suite.test';
async function CreateParameters(overrides) {
if (overrides) {
Cli.options = overrides;
}
const originalValue = GitHub.githubInputEnabled;
GitHub.githubInputEnabled = false;
const results = await BuildParameters.create();
GitHub.githubInputEnabled = originalValue;
delete Cli.options;
if (overrides) Cli.options = overrides;
return results;
return BuildParameters.create();
}
describe('Cloud Runner Sync Environments', () => {
setups();