You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ho...@apache.org on 2026/10/29 10:34:55 UTC

(streampipes) 03/03: json

This is an automated email from the ASF dual-hosted git repository.

JHoelli pushed a commit to branch fix-audit-log-download-tests
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit c86849c243b7bb7dfd96c08a536612a42535181c
Author: Jacqueline Höllig <j....@gmx.net>
AuthorDate: Thu Oct 29 11:32:20 2026 +0100

    json
---
 .../tests/configuration/audit-log/audit-log-download.spec.ts      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ui/cypress/tests/configuration/audit-log/audit-log-download.spec.ts b/ui/cypress/tests/configuration/audit-log/audit-log-download.spec.ts
index 0e7ea33986..d70080e11a 100644
--- a/ui/cypress/tests/configuration/audit-log/audit-log-download.spec.ts
+++ b/ui/cypress/tests/configuration/audit-log/audit-log-download.spec.ts
@@ -39,14 +39,14 @@ describe('Download audit log', () => {
     ) => {
         const downloadsFolder = Cypress.config('downloadsFolder');
         cy.readFile(`${downloadsFolder}/audit-log.${format}`).then(
-            (content: string) => {
+            (content: unknown) => {
                 const eventTypes =
                     format === 'json'
-                        ? JSON.parse(content).map(
-                              (event: { eventType: string }) => event.eventType,
+                        ? (content as { eventType: string }[]).map(
+                              event => event.eventType,
                           )
                         : CSV.parse(
-                              content,
+                              content as string,
                               delimiter === 'semicolon' ? ';' : ',',
                           )
                               .slice(1)