Skip to content

Commit ebbbd64

Browse files
committed
Fix tests
1 parent 3b48d9a commit ebbbd64

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed

src/app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ export class EditBitstreamPageComponent implements OnInit, OnDestroy {
415415
constructor(private route: ActivatedRoute,
416416
private router: Router,
417417
private changeDetectorRef: ChangeDetectorRef,
418-
private location: Location,
419418
private formService: DynamicFormService,
420419
private translate: TranslateService,
421420
private bitstreamService: BitstreamDataService,

src/app/browse-by/browse-by-metadata/browse-by-metadata.component.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ import { PaginationComponentOptions } from '../../shared/pagination/pagination-c
3838
import { createSuccessfulRemoteDataObject$ } from '../../shared/remote-data.utils';
3939
import { ActivatedRouteStub } from '../../shared/testing/active-router.stub';
4040
import { PaginationServiceStub } from '../../shared/testing/pagination-service.stub';
41+
import { EnumKeysPipe } from '../../shared/utils/enum-keys-pipe';
42+
import { VarDirective } from '../../shared/utils/var.directive';
4143
import {
4244
BrowseByMetadataComponent,
4345
browseParamsToOptions,

src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
TestBed,
88
waitForAsync,
99
} from '@angular/core/testing';
10+
import { By } from '@angular/platform-browser';
1011
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
1112
import { RouterTestingModule } from '@angular/router/testing';
1213
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

src/app/item-page/field-components/metadata-values/metadata-values.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--
44
Choose a template. Priority: markdown, link, browse link.
55
-->
6-
<ng-container *ngTemplateOutlet="(renderMarkdown ? markdown : (hasLink(mdValue) ? (img !== null ? linkImg : link) : (hasBrowseDefinition() ? browselink : simple)));
6+
<ng-container *ngTemplateOutlet="(renderMarkdown ? markdown : (hasLink(mdValue) ? (hasValue(img) ? linkImg : link) : (hasBrowseDefinition() ? browselink : simple)));
77
context: {value: mdValue.value, img}">
88
</ng-container>
99
<span class="separator" *ngIf="!last" [innerHTML]="separator"></span>

src/app/item-page/field-components/metadata-values/metadata-values.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,16 @@ export class MetadataValuesComponent implements OnChanges {
6565
*/
6666
renderMarkdown;
6767

68+
6869
@Input() browseDefinition?: BrowseDefinition;
6970

7071
/**
7172
* Optional {@code ImageField} reference that represents an image to be displayed inline.
7273
*/
7374
@Input() img?: ImageField;
7475

76+
hasValue = hasValue;
77+
7578
ngOnChanges(changes: SimpleChanges): void {
7679
this.renderMarkdown = !!this.appConfig.markdown.enabled && this.enableMarkdown;
7780
}

src/app/shared/form/builder/ds-dynamic-form-ui/models/custom-switch/custom-switch.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
ReactiveFormsModule,
1010
UntypedFormGroup,
1111
} from '@angular/forms';
12+
import { By } from '@angular/platform-browser';
1213
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
1314
import {
1415
DynamicFormsCoreModule,

0 commit comments

Comments
 (0)