Date: Mon, 22 Jan 2024 13:43:42 +0200
Subject: [PATCH 5/7] revert character limit
---
.../components/public-archive/public-archive.component.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/public/components/public-archive/public-archive.component.ts b/src/app/public/components/public-archive/public-archive.component.ts
index 3bc1561db..127909cbf 100644
--- a/src/app/public/components/public-archive/public-archive.component.ts
+++ b/src/app/public/components/public-archive/public-archive.component.ts
@@ -27,7 +27,7 @@ export class PublicArchiveComponent implements OnInit, OnDestroy {
description: string;
searchResults: any[] = [];
showShortText = true;
- characterLimit = 10;
+ characterLimit = 100;
shortText = '';
emails: string[] = [];
websites: string[] = [];
From 90967109621233e0ab40513274c57190bf31c1b3 Mon Sep 17 00:00:00 2001
From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com>
Date: Thu, 25 Jan 2024 10:38:54 +0200
Subject: [PATCH 6/7] linting
---
.../components/public-archive/public-archive.component.spec.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/app/public/components/public-archive/public-archive.component.spec.ts b/src/app/public/components/public-archive/public-archive.component.spec.ts
index 42f9c7223..b702bd366 100644
--- a/src/app/public/components/public-archive/public-archive.component.spec.ts
+++ b/src/app/public/components/public-archive/public-archive.component.spec.ts
@@ -24,11 +24,13 @@ describe('PublicArchiveComponent', () => {
it('should create', async () => {
const { instance } = await shallow.render();
+
expect(instance).toBeTruthy();
});
it('should have the information hidden as default', async () => {
const { instance } = await shallow.render();
+
expect(instance.showProfileInformation).toBe(false);
});
@@ -36,6 +38,7 @@ describe('PublicArchiveComponent', () => {
const { instance, find } = await shallow.render();
const icon = find('.icon-expand');
icon.nativeElement.click();
+
expect(instance.showProfileInformation).toBe(true);
});
From d61a5314f38967d6dd51e8be2d6578ead0acd954 Mon Sep 17 00:00:00 2001
From: crisnicandrei <62384997+crisnicandrei@users.noreply.github.com>
Date: Thu, 25 Jan 2024 10:45:36 +0200
Subject: [PATCH 7/7] fixed test.
---
.../public-archive.component.spec.ts | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/src/app/public/components/public-archive/public-archive.component.spec.ts b/src/app/public/components/public-archive/public-archive.component.spec.ts
index b702bd366..203a9a4d7 100644
--- a/src/app/public/components/public-archive/public-archive.component.spec.ts
+++ b/src/app/public/components/public-archive/public-archive.component.spec.ts
@@ -49,18 +49,9 @@ describe('PublicArchiveComponent', () => {
fixture.detectChanges();
- expect(find('.profile-description').classes).toEqual({
- 'profile-description': true,
- 'profile-description-show': true,
- });
-
- instance.isViewingProfile$ = of(true);
-
- fixture.detectChanges();
-
- expect(find('.profile-info').classes).toEqual({
- 'profile-info': true,
- 'profile-info-show': true,
+ expect(find('.archive-description').classes).toEqual({
+ 'archive-description': true,
+ 'archive-description-show': true,
});
});
});