Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Aug 31, 2023
1 parent 1dc6664 commit 2667680
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ mat-icon {

a {
font-weight: 400;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
text-decoration: underline;
cursor: pointer;
color: map-get($foreground, 'brand-primary-dark');


}

svg {
Expand Down Expand Up @@ -57,4 +55,4 @@
}
}

@include theme($orcid-app-theme);
@include theme($orcid-app-theme);
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { SummaryPanelComponent } from './summary-panel.component'
import { WINDOW_PROVIDERS } from 'src/app/cdk/window'

describe('SummaryPanelComponent', () => {
let component: SummaryPanelComponent
Expand All @@ -9,7 +10,7 @@ describe('SummaryPanelComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SummaryPanelComponent],
providers: [],
providers: [WINDOW_PROVIDERS],
}).compileComponents()

fixture = TestBed.createComponent(SummaryPanelComponent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export class SummaryPanelComponent implements OnInit {
if (!url) {
return
}
console.log(url)
this._window.open(url, '_blank')
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
}
}


.activity-container.padding-botton {
padding-bottom: 16px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
text-decoration: underline;
cursor: pointer;
color: map-get($foreground, 'brand-primary-dark');


}

svg {
Expand Down Expand Up @@ -57,4 +55,4 @@
}
}

@include theme($orcid-app-theme);
@include theme($orcid-app-theme);
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { SummarySimplePanelComponent } from './summary-simple-panel.component'
import { WINDOW_PROVIDERS } from 'src/app/cdk/window'

describe('SummarySimplePanelComponent', () => {
let component: SummarySimplePanelComponent
Expand All @@ -9,6 +10,7 @@ describe('SummarySimplePanelComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SummarySimplePanelComponent],
providers: [WINDOW_PROVIDERS],
}).compileComponents()

fixture = TestBed.createComponent(SummarySimplePanelComponent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
justify-content: center;
}



main {
margin-top: 32px;
}
Expand Down Expand Up @@ -168,7 +166,7 @@ a {
color: #fff;
text-decoration: underline;

>svg>path {
> svg > path {
fill: #fff;
}

Expand All @@ -177,9 +175,7 @@ a {
gap: 8px;
}


h2.hover-effect {
text-decoration: underline;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@

.panel,
.panel-header {
border-color: mat.get-color-from-palette($background,
ui-background-darkest);
border-color: mat.get-color-from-palette(
$background,
ui-background-darkest
);
}

.panel-header {
Expand All @@ -61,4 +63,4 @@
}
}

@include theme($orcid-app-theme);
@include theme($orcid-app-theme);
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy {
fundsHover = false
externalIdentifiersHover = false
professionalActivitiesHover = false

labelValidatedWorks = $localize`:@@summary.validatedWorks:Validated works`
labelValidatedWork = $localize`:@@summary.validatedWork:Validated work`
labelSelfAssertedWorks = $localize`:@@summary.selfAssertedWorks:Self-asserted works`
Expand Down Expand Up @@ -101,7 +101,6 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy {
this.creationDateWithOffset = this.dateWithOffset(
this.trustedSummary.creation
)
console.log('this.creationDateWithOffset', this.creationDateWithOffset)
// if record was created today
if (
this.creationDateWithOffset.toDateString() ===
Expand Down Expand Up @@ -216,5 +215,4 @@ export class TrustedSummaryComponent implements OnInit, OnDestroy {
const offsettedDate = new Date(date.getTime() + offset * 60 * 1000)
return offsettedDate
}

}

0 comments on commit 2667680

Please sign in to comment.