Skip to content

Commit c87e981

Browse files
committed
clean up
1 parent 7bc4625 commit c87e981

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/shared/sf-tab-group/tab-group-header/tab-group-header.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ import { TabScrollButtonComponent } from './tab-scroll-button/tab-scroll-button.
3939
templateUrl: './tab-group-header.component.html',
4040
styleUrls: ['./tab-group-header.component.scss'],
4141
imports: [
42-
TabScrollButtonComponent,
4342
CdkDropList,
44-
NgFor,
45-
TabHeaderComponent,
4643
CdkDrag,
44+
NgFor,
45+
NgIf,
4746
NgTemplateOutlet,
48-
MatMenuTrigger,
47+
AsyncPipe,
4948
MatIcon,
5049
MatMenu,
51-
NgIf,
5250
MatMenuItem,
53-
AsyncPipe,
54-
TranslocoModule
51+
MatMenuTrigger,
52+
TranslocoModule,
53+
TabHeaderComponent,
54+
TabScrollButtonComponent
5555
]
5656
})
5757
export class TabGroupHeaderComponent implements OnChanges, OnInit, AfterViewInit, OnDestroy {

src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/lynx/insights/lynx-insight-editor-objects/lynx-insight-editor-objects.component.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component, DestroyRef, NO_ERRORS_SCHEMA, ViewChild } from '@angular/core';
22
import { ComponentFixture, fakeAsync, flush, TestBed, tick } from '@angular/core/testing';
33
import { Delta } from 'quill';
4+
import { LynxInsightFilter, LynxInsightType } from 'realtime-server/lib/esm/scriptureforge/models/lynx-insight';
45
import { BehaviorSubject } from 'rxjs';
56
import { anything, instance, mock, verify, when } from 'ts-mockito';
67
import { ActivatedBookChapterService, RouteBookChapter } from 'xforge-common/activated-book-chapter.service';
@@ -384,8 +385,8 @@ class TestEnvironment {
384385
private filteredInsightsSubject: BehaviorSubject<LynxInsight[]>;
385386
private displayStateSubject: BehaviorSubject<LynxInsightDisplayState>;
386387
private activatedBookChapterSubject: BehaviorSubject<RouteBookChapter | undefined>;
387-
private filterSubject: BehaviorSubject<any>;
388-
private filteredInsightCountsByTypeSubject: BehaviorSubject<any>;
388+
private filterSubject: BehaviorSubject<LynxInsightFilter>;
389+
private filteredInsightCountsByTypeSubject: BehaviorSubject<Record<LynxInsightType, number>>;
389390
private taskRunningStatusSubject: BehaviorSubject<boolean>;
390391

391392
constructor(args: TestEnvArgs = {}) {

src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/lynx/insights/lynx-insights-panel/lynx-insights-panel.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ describe('LynxInsightsPanelComponent', () => {
124124
],
125125
schemas: [CUSTOM_ELEMENTS_SCHEMA],
126126
providers: [
127+
provideNoopAnimations(),
127128
{ provide: LynxInsightStateService, useMock: mockLynxInsightStateService },
128129
{ provide: ActivatedProjectService, useMock: mockActivatedProjectService },
129130
{ provide: ActivatedBookChapterService, useMock: mockActivatedBookChapterService },
@@ -134,7 +135,7 @@ describe('LynxInsightsPanelComponent', () => {
134135
{
135136
provide: EDITOR_INSIGHT_DEFAULTS,
136137
useValue: {
137-
filter: { types: ['info', 'warning', 'error', provideNoopAnimations()], scope: 'chapter' },
138+
filter: { types: ['info', 'warning', 'error'], scope: 'chapter' },
138139
sortOrder: 'severity',
139140
queryParamName: 'insight',
140141
actionOverlayApplyPrimaryActionChord: { altKey: true, shiftKey: true, key: 'Enter' },

0 commit comments

Comments
 (0)