better named tests and log local-docker params
parent
591337c0f4
commit
ecd30a8b9f
|
|
@ -109,10 +109,8 @@ describe('Cloud Runner Sync Environments', () => {
|
||||||
const fullNameEqualValue = `${element.name}=${element.value}`;
|
const fullNameEqualValue = `${element.name}=${element.value}`;
|
||||||
expect(newLinePurgedFile).toContain(fullNameEqualValue);
|
expect(newLinePurgedFile).toContain(fullNameEqualValue);
|
||||||
|
|
||||||
const count = (
|
// should not contain more than once
|
||||||
newLinePurgedFile.replace(/<br\/>/g, '\n').match(`/${fullNameEqualValue.replace(/<br\/>/g, '\n')}/g`) || []
|
expect(newLinePurgedFile.replace('fullNameEqualValue', '')).not.toContain(fullNameEqualValue);
|
||||||
).length;
|
|
||||||
expect(count).toEqual(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 10000000);
|
}, 10000000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue