feat(core): Enhanced data handling capabilities and improved company search functionalities.

This commit is contained in:
2025-01-03 01:36:26 +01:00
parent a67a0993d6
commit c3f6ef531b
10 changed files with 287 additions and 143 deletions

View File

@ -12,8 +12,21 @@ tap.test('should start the instance', async () => {
await testOpenDataInstance.start();
})
tap.test('should get the data for a company', async () => {
const result = await testOpenDataInstance.handelsregister.getDataForCompany('Volkswagen');
tap.skip.test('should build initial data', async () => {
await testOpenDataInstance.buildInitialDb();
});
const resultsSearch = tap.test('should get the data for a company', async () => {
const result = await testOpenDataInstance.handelsregister.searchCompany('Volkswagen');
console.log(result);
return result;
});
tap.test('should get the data for a specific company', async () => {
const testCompany = (await resultsSearch.testResultPromise)[21]['germanParsedRegistration'];
console.log(`trying to find specific company with:`);
console.log(testCompany);
const result = await testOpenDataInstance.handelsregister.getSpecificCompany(testCompany);
console.log(result);
});