From aba4e857cde7a3423c6e0aae9f1aaa94c6fa036d Mon Sep 17 00:00:00 2001 From: Jordan Welch Date: Fri, 11 Aug 2023 20:05:14 -0500 Subject: [PATCH] Use MockFetch type --- __tests__/support/tmdbMock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/support/tmdbMock.ts b/__tests__/support/tmdbMock.ts index 25f3cdc4..5a71079c 100644 --- a/__tests__/support/tmdbMock.ts +++ b/__tests__/support/tmdbMock.ts @@ -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> + private mockFetch: MockFetch ) {} mockSearchMovie (movie: Movie, id = 1234) {