fix(test): Corrected index value in test for fetching specific company data

This commit is contained in:
2025-01-07 05:13:13 +01:00
parent 6ce6153ccf
commit d9588f8f65
3 changed files with 7 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const resultsSearch = tap.test('should get the data for a company', async () =>
});
tap.test('should get the data for a specific company', async () => {
let testCompany: BusinessRecord['data']['germanParsedRegistration'] = (await resultsSearch.testResultPromise)[8]['germanParsedRegistration'];
let testCompany: BusinessRecord['data']['germanParsedRegistration'] = (await resultsSearch.testResultPromise)[7]['germanParsedRegistration'];
console.log(`trying to find specific company with:`);
console.log(testCompany);
const result = await testOpenDataInstance.handelsregister.getSpecificCompany(testCompany);