From 3b0e7b6e5abaf6f0369044e2a3dce16acc3be4f0 Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 16 Mar 2026 22:47:55 +0100 Subject: [PATCH] Test --- frontend/package.json | 3 +++ frontend/src/app/shared/state/comments.state.spec.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/frontend/package.json b/frontend/package.json index 45271a614..4c7876ab7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -115,6 +115,9 @@ "vite-tsconfig-paths": "^6.1.1", "vitest": "^4.0.8" }, + "optionalDependencies": { + "@rollup/rollup-linux-x64-gnu": "*" + }, "overrides": { "ng2-charts": { "ng2-charts-schematics": "0.1.7" diff --git a/frontend/src/app/shared/state/comments.state.spec.ts b/frontend/src/app/shared/state/comments.state.spec.ts index adac3278d..51d3c77e5 100644 --- a/frontend/src/app/shared/state/comments.state.spec.ts +++ b/frontend/src/app/shared/state/comments.state.spec.ts @@ -211,18 +211,21 @@ describe('CommentsState', () => { expect(items).toEqual([ { + id: '1', index: 0, comment: { id: '1', } as any as Comment, replies: [], }, { + id: '2', index: 1, comment: { id: '2', } as any as Comment, replies: [ { + id: '4', index: 3, comment: { id: '4', @@ -249,12 +252,14 @@ describe('CommentsState', () => { expect(items).toEqual([ { + id: '2', index: 1, comment: { id: '2', } as any as Comment, replies: [ { + id: '4', index: 3, comment: { id: '4',