Skip to content

Commit

Permalink
Use MockFetch type
Browse files Browse the repository at this point in the history
  • Loading branch information
JHWelch committed Aug 12, 2023
1 parent 8f73b06 commit aba4e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/support/tmdbMock.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { jest } from '@jest/globals'
import Movie from '../../src/models/movie'
import { TMDB_POSTER_URL } from '../../src/data/tmdb/constants'
import { MockFetch } from './fetchMock'

export class TmdbMock {
constructor (
private mockFetch: jest.Mock<(input: RequestInfo | URL, init?: RequestInit | undefined) => Promise<Response>>
private mockFetch: MockFetch
) {}

mockSearchMovie (movie: Movie, id = 1234) {
Expand Down

0 comments on commit aba4e85

Please sign in to comment.