Expect build params in remote client as json
parent
a4ff4108b1
commit
d948c517a7
|
|
@ -33,7 +33,9 @@ describe('Cloud Runner', () => {
|
||||||
const buildParameterKeys = Object.keys(buildParameter);
|
const buildParameterKeys = Object.keys(buildParameter);
|
||||||
for (const element of buildParameterKeys) {
|
for (const element of buildParameterKeys) {
|
||||||
if (buildParameter[element] !== undefined) {
|
if (buildParameter[element] !== undefined) {
|
||||||
expect(file).toContain(`"${element}":"${buildParameter[element]}"`);
|
expect(file.replace('"', '').replace('\\', '')).toContain(
|
||||||
|
`${element}:${buildParameter[element].replace('"', '').replace('\\', '')}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const inputKeys = Object.getOwnPropertyNames(Input);
|
const inputKeys = Object.getOwnPropertyNames(Input);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue