mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
fix(tests): update API call expectations in useVODStore tests to include null parameter
This commit is contained in:
parent
1d5a005888
commit
d29a9ef88c
1 changed files with 2 additions and 2 deletions
|
|
@ -288,7 +288,7 @@ describe('useVODStore', () => {
|
|||
movieDetails = await result.current.fetchMovieDetailsFromProvider(1);
|
||||
});
|
||||
|
||||
expect(api.getMovieProviderInfo).toHaveBeenCalledWith(1);
|
||||
expect(api.getMovieProviderInfo).toHaveBeenCalledWith(1, null);
|
||||
expect(movieDetails.name).toBe('Provider Movie');
|
||||
expect(movieDetails.description).toBe('From provider');
|
||||
expect(movieDetails.backdrop_path).toEqual(['path1', 'path2']);
|
||||
|
|
@ -446,7 +446,7 @@ describe('useVODStore', () => {
|
|||
seriesInfo = await result.current.fetchSeriesInfo(1);
|
||||
});
|
||||
|
||||
expect(api.getSeriesInfo).toHaveBeenCalledWith(1);
|
||||
expect(api.getSeriesInfo).toHaveBeenCalledWith(1, null);
|
||||
expect(seriesInfo.id).toBe(1);
|
||||
expect(seriesInfo.name).toBe('Test Series');
|
||||
expect(seriesInfo.episodesList).toHaveLength(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue