fix(test): Await file writes in Handelsregister tests to ensure all downloads complete before test end

This commit is contained in:
2025-04-09 15:55:29 +00:00
parent 1d0d44dc29
commit 209af50a4c
3 changed files with 9 additions and 3 deletions

View File

@ -27,9 +27,9 @@ tap.test('should get the data for a specific company', async () => {
const result = await testOpenDataInstance.handelsregister.getSpecificCompany(testCompany);
console.log(result);
result.files.map(async (file) => {
await Promise.all(result.files.map(async (file) => {
await file.writeToDir('./.nogit/testoutput');
});
}));
});