Skip to content

Commit

Permalink
🤖 GITHUB ACTIONS format_prettier
Browse files Browse the repository at this point in the history
leomendoza123 committed Dec 15, 2023
1 parent b0a196d commit 2c38bdf
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@
id="cy-remove-duplicated-record"
>Account settings > Remove duplicate record
</a>
</p>
</p>
<p>
<a
href="https://support.orcid.org/hc/en-us/articles/360006896634"
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ export class SettingsActionsDeactivateComponent implements OnInit, OnDestroy {
private _platform: PlatformInfoService,
private _deactivate: AccountActionsDeactivateService,
private _togglz: TogglzService,
private activeRoute: ActivatedRoute,
private activeRoute: ActivatedRoute
) {}

ngOnInit(): void {
Original file line number Diff line number Diff line change
@@ -12,7 +12,10 @@ describe('SettingsActionsComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [SettingsActionsComponent],
providers: [WINDOW_PROVIDERS, { provide: ActivatedRoute, useValue: {fragment: of({})} }],
providers: [
WINDOW_PROVIDERS,
{ provide: ActivatedRoute, useValue: { fragment: of({}) } },
],
}).compileComponents()
})

Original file line number Diff line number Diff line change
@@ -30,7 +30,9 @@ export class SettingsActionsComponent implements OnInit {
this.displayPanelByHashName(hash)
this.activeRoute.fragment.subscribe((fragment) => {
if (fragment === 'remove-duplicate') {
const element = this._window.document.querySelector('#cy-remove-duplicate-panel')
const element = this._window.document.querySelector(
'#cy-remove-duplicate-panel'
)
this.displayPanelByHashName(fragment)
setTimeout(() => {
if (element) {

0 comments on commit 2c38bdf

Please sign in to comment.