Skip to content

Commit bc2ffeb

Browse files
[DSC-1482] Modified spec.ts according new implementation
1 parent b43d19f commit bc2ffeb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/app/item-page/full/field-components/file-section/full-file-section.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { APP_CONFIG } from 'src/config/app-config.interface';
2222
import { environment } from 'src/environments/environment';
2323
import { UUIDService } from '../../../../core/shared/uuid.service';
2424
import { getMockUUIDService } from '../../../../shared/mocks/uuid.service.mock';
25+
import {Item} from '../../../../core/shared/item.model';
2526

2627
describe('FullFileSectionComponent', () => {
2728
let comp: FullFileSectionComponent;
@@ -55,7 +56,7 @@ describe('FullFileSectionComponent', () => {
5556
});
5657

5758
const bitstreamDataService = jasmine.createSpyObj('bitstreamDataService', {
58-
findAllByItemAndBundleName: createSuccessfulRemoteDataObject$(createPaginatedList([mockBitstream, mockBitstream, mockBitstream]))
59+
showableByItem: createSuccessfulRemoteDataObject$(createPaginatedList([mockBitstream, mockBitstream, mockBitstream])),
5960
});
6061

6162
const paginationService = new PaginationServiceStub();
@@ -85,6 +86,7 @@ describe('FullFileSectionComponent', () => {
8586
beforeEach(waitForAsync(() => {
8687
fixture = TestBed.createComponent(FullFileSectionComponent);
8788
comp = fixture.componentInstance;
89+
comp.item = new Item();
8890
fixture.detectChanges();
8991
}));
9092

0 commit comments

Comments
 (0)