Refactor parameter serialization into TaskParameterSerializer
parent
19a80caf31
commit
f0dbb459ff
|
|
@ -2393,7 +2393,7 @@ class TaskParameterSerializer {
|
|||
array.push({ name: 'buildParameters', value: JSON.stringify(cloud_runner_state_1.CloudRunnerState.buildParams) });
|
||||
const input = Object.getOwnPropertyNames(__1.Input);
|
||||
for (const element of input) {
|
||||
if (typeof __1.Input[element] !== 'function') {
|
||||
if (typeof __1.Input[element] != 'function') {
|
||||
array.push({
|
||||
name: element,
|
||||
value: `${__1.Input[element]}`,
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -31,7 +31,7 @@ describe('Cloud Runner', () => {
|
|||
expect(file).toContain(JSON.stringify(buildParameter));
|
||||
const inputKeys = Object.getOwnPropertyNames(Input);
|
||||
for (const element of inputKeys) {
|
||||
if (Input[element] !== undefined) {
|
||||
if (Input[element] !== undefined && typeof Input[element] != 'function') {
|
||||
expect(file).toContain(`${element}=${Input[element]}`);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ export class TaskParameterSerializer {
|
|||
array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) });
|
||||
const input = Object.getOwnPropertyNames(Input);
|
||||
for (const element of input) {
|
||||
if (typeof Input[element] !== 'function') {
|
||||
if (typeof Input[element] != 'function') {
|
||||
array.push({
|
||||
name: element,
|
||||
value: `${Input[element]}`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue