From 2a329803f201711a0c39110e84654898c3cbb5ef Mon Sep 17 00:00:00 2001 From: chuanlin2018 Date: Tue, 30 Jul 2024 15:44:53 -0400 Subject: [PATCH] Removed Forensics banner pop up and fixed unit test --- angular/src/app/landing/landingpage.component.ts | 3 +-- angular/src/app/landing/topic/topic.component.spec.ts | 2 +- angular/src/assets/sample3.json | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/angular/src/app/landing/landingpage.component.ts b/angular/src/app/landing/landingpage.component.ts index fd8ffb27f..32893c2b1 100644 --- a/angular/src/app/landing/landingpage.component.ts +++ b/angular/src/app/landing/landingpage.component.ts @@ -94,7 +94,7 @@ export class LandingPageComponent implements OnInit, AfterViewInit { modalReference: any; windowScrolled: boolean = false; showMetrics: boolean = false; - imageURL: string; + imageURL: string = ""; theme: string; scienceTheme = Themes.SCIENCE_THEME; defaultTheme = Themes.DEFAULT_THEME; @@ -191,7 +191,6 @@ export class LandingPageComponent implements OnInit, AfterViewInit { let metadataError = ""; this.displaySpecialMessage = false; this.CART_ACTIONS = CartActions.cartActions; - this.imageURL = 'assets/images/fingerprint.jpg'; // Only listen to storage change if we are not in edit mode if(this.inBrowser && !this.editEnabled){ diff --git a/angular/src/app/landing/topic/topic.component.spec.ts b/angular/src/app/landing/topic/topic.component.spec.ts index 5187edd3a..270887db9 100644 --- a/angular/src/app/landing/topic/topic.component.spec.ts +++ b/angular/src/app/landing/topic/topic.component.spec.ts @@ -59,7 +59,7 @@ describe('TopicComponent', () => { it('Research Topics should contains Information Technology', () => { let cmpel = fixture.nativeElement; let aels = cmpel.querySelectorAll(".topics"); - expect(aels.length).toEqual(4); + expect(aels.length).toEqual(2); expect(aels[0].innerText).toContain('Information Technology'); }); diff --git a/angular/src/assets/sample3.json b/angular/src/assets/sample3.json index 372e2e18a..b462df451 100644 --- a/angular/src/assets/sample3.json +++ b/angular/src/assets/sample3.json @@ -11,12 +11,12 @@ "_schema": "https://www.nist.gov/od/dm/nerdm-schema/v0.1#", "topic": [ { - "scheme": "https://www.nist.gov/od/dm/nist-themes/v1.0", + "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.0", "tag": "Information Technology", "@type": "Concept" }, { - "scheme": "https://www.nist.gov/od/dm/nist-themes/v1.0", + "scheme": "https://data.nist.gov/od/dm/nist-themes/v1.0", "tag": "Information Technology: Biometrics", "@type": "Concept" }