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