better named tests and log local-docker params

pull/461/head
Frostebite 2022-09-21 01:32:44 +01:00
parent 591337c0f4
commit ecd30a8b9f
1 changed files with 2 additions and 4 deletions

View File

@ -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);