Skip to content

Commit

Permalink
fix Mock CollectionRepository classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Oct 29, 2024
1 parent de5de97 commit 6edfaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stories/collection/CollectionErrorMockRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CollectionFacet } from '../../collection/domain/models/CollectionFacet'
import { CollectionMockRepository } from './CollectionMockRepository'

export class CollectionErrorMockRepository extends CollectionMockRepository {
getById(_id: string): Promise<Collection> {
getById(_id?: string): Promise<Collection> {
return new Promise((_resolve, reject) => {
setTimeout(() => {
reject('Something went wrong')
Expand Down
2 changes: 1 addition & 1 deletion src/stories/collection/NoCollectionMockRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CollectionFacet } from '../../collection/domain/models/CollectionFacet'
import { CollectionMockRepository } from './CollectionMockRepository'

export class NoCollectionMockRepository extends CollectionMockRepository {
getById(_id: string): Promise<Collection> {
getById(_id?: string): Promise<Collection> {
return new Promise((_resolve, reject) => {
setTimeout(() => {
reject('Collection not found')
Expand Down

0 comments on commit 6edfaa0

Please sign in to comment.