mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Several fixes after merge with main
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<ng-container *ngIf="item" @fadeInOut>
|
||||
<div *ngIf="item" @fadeInOut>
|
||||
<ng-container *ngIf="status">
|
||||
<ds-mydspace-item-status [status]="status"></ds-mydspace-item-status>
|
||||
</ng-container>
|
||||
@@ -30,4 +30,4 @@
|
||||
</div>
|
||||
</ds-truncatable>
|
||||
<ds-item-submitter *ngIf="showSubmitter" [object]="object.indexableObject"></ds-item-submitter>
|
||||
</ng-container>
|
||||
</div>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ChangeDetectionStrategy, NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { By } from '@angular/platform-browser';
|
||||
|
||||
@@ -9,6 +9,7 @@ import { Item } from '../../../../core/shared/item.model';
|
||||
import { ItemListPreviewComponent } from './item-list-preview.component';
|
||||
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
||||
import { TranslateLoaderMock } from '../../../mocks/translate-loader.mock';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
|
||||
let component: ItemListPreviewComponent;
|
||||
let fixture: ComponentFixture<ItemListPreviewComponent>;
|
||||
@@ -66,7 +67,7 @@ const mockItemWithEntityType: Item = Object.assign(new Item(), {
|
||||
});
|
||||
|
||||
describe('ItemListPreviewComponent', () => {
|
||||
beforeEach(async(() => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
TranslateModule.forRoot({
|
||||
@@ -75,6 +76,7 @@ describe('ItemListPreviewComponent', () => {
|
||||
useClass: TranslateLoaderMock
|
||||
}
|
||||
}),
|
||||
NoopAnimationsModule
|
||||
],
|
||||
declarations: [ItemListPreviewComponent, TruncatePipe],
|
||||
providers: [
|
||||
@@ -88,7 +90,7 @@ describe('ItemListPreviewComponent', () => {
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(async(() => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
fixture = TestBed.createComponent(ItemListPreviewComponent);
|
||||
component = fixture.componentInstance;
|
||||
|
||||
|
Reference in New Issue
Block a user