fix(test): Await file writes in Handelsregister tests to ensure all downloads complete before test end
This commit is contained in:
@ -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');
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user