Skip to content

Commit

Permalink
122064: remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Vannerum committed Dec 10, 2024
1 parent 7208383 commit 6a91314
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ describe('BrowseByDatePageComponent', () => {
const mockBrowseService = {
getBrowseEntriesFor: (options: BrowseEntrySearchOptions) => toRemoteData([]),
getBrowseItemsFor: (value: string, options: BrowseEntrySearchOptions) => toRemoteData([firstItem]),
getFirstItemFor: (definition: string, scope?: string, sortDirection?: SortDirection) => null
getFirstItemFor: (definition: string, scope?: string, sortDirection?: SortDirection) => null,
getConfiguredSortDirection: () => observableOf(SortDirection.DESC),
};

const mockDsoService = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class BrowseByDatePageComponent extends BrowseByMetadataPageComponent {
})).subscribe(({ params, currentPage, currentSort }) => {
const metadataKeys = params.browseDefinition ? params.browseDefinition.metadataKeys : this.defaultMetadataKeys;
this.startsWith = +params.startsWith || params.startsWith;
this.browseId = params.id || this.defaultBrowseId;
const searchOptions = browseParamsToOptions(params, currentPage, currentSort, this.browseId, this.fetchThumbnails);
this.updatePageWithItems(searchOptions, this.value, undefined);
this.updateParent(params.scope);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ describe('BrowseByMetadataPageComponent', () => {

const mockBrowseService = {
getBrowseEntriesFor: (options: BrowseEntrySearchOptions) => toRemoteData(mockEntries),
getBrowseItemsFor: (value: string, options: BrowseEntrySearchOptions) => toRemoteData(mockItems)
getBrowseItemsFor: (value: string, options: BrowseEntrySearchOptions) => toRemoteData(mockItems),
getConfiguredSortDirection: () => observableOf(SortDirection.ASC),
};

const mockDsoService = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { PaginationService } from '../../core/pagination/pagination.service';
import { PaginationServiceStub } from '../../shared/testing/pagination-service.stub';
import { APP_CONFIG } from '../../../config/app-config.interface';
import { environment } from '../../../environments/environment';
import { SortDirection } from '../../core/cache/models/sort-options.model';


describe('BrowseByTitlePageComponent', () => {
Expand Down Expand Up @@ -54,7 +55,8 @@ describe('BrowseByTitlePageComponent', () => {

const mockBrowseService = {
getBrowseItemsFor: () => toRemoteData(mockItems),
getBrowseEntriesFor: () => toRemoteData([])
getBrowseEntriesFor: () => toRemoteData([]),
getConfiguredSortDirection: () => observableOf(SortDirection.ASC),
};

const mockDsoService = {
Expand Down

0 comments on commit 6a91314

Please sign in to comment.