From d9588f8f650a3c698a4d8981061dd40bf13073c1 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 7 Jan 2025 05:13:13 +0100 Subject: [PATCH] fix(test): Corrected index value in test for fetching specific company data --- changelog.md | 5 +++++ test/test.ts | 2 +- ts/00_commitinfo_data.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index dd8269f..eca5d66 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-01-07 - 1.4.3 - fix(test) +Corrected index value in test for fetching specific company data + +- Updated the index from 8 to 7 for the germanParsedRegistration fetch in test + ## 2025-01-07 - 1.4.2 - fix(core) Fix concurrency and download handling in HandelsRegister class and adjust test cases diff --git a/test/test.ts b/test/test.ts index 38261b2..d48d55f 100644 --- a/test/test.ts +++ b/test/test.ts @@ -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); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 4f026f6..50ebb3e 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@fin.cx/opendata', - version: '1.4.2', + version: '1.4.3', description: 'A TypeScript library for accessing, managing, and updating open business data, focused on German companies and integrating with MongoDB.' }