mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
108588: Fixed browse by issue date show loading icon indefinitely when empty
This commit is contained in:
@@ -23,6 +23,7 @@ import { PaginationServiceStub } from '../../shared/testing/pagination-service.s
|
||||
import { APP_CONFIG } from '../../../config/app-config.interface';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { SortDirection } from '../../core/cache/models/sort-options.model';
|
||||
import { cold } from 'jasmine-marbles';
|
||||
|
||||
describe('BrowseByDateComponent', () => {
|
||||
let comp: BrowseByDateComponent;
|
||||
@@ -112,9 +113,13 @@ describe('BrowseByDateComponent', () => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should initialize the list of items', () => {
|
||||
it('should initialize the list of items', (done: DoneFn) => {
|
||||
expect(comp.loading$).toBeObservable(cold('(a|)', {
|
||||
a: false,
|
||||
}));
|
||||
comp.items$.subscribe((result) => {
|
||||
expect(result.payload.page).toEqual([firstItem]);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user