Skip to content

Commit

Permalink
feat: correct IByCountry import and fetchByCountry test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adailton Nascimento committed Feb 22, 2024
1 parent f54bc7f commit a1dc526
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import NewsParser from './news-parser';
import {
IProviderStats,
ISearch,
IByCountry,
IAnimeEpisode,
IAnimeInfo,
IAnimeResult,
Expand Down Expand Up @@ -80,6 +81,7 @@ export {
GetComicsComicsObject,
ComicRes,
ISearch,
IByCountry,
IMangaChapterPage,
TvType,
MovieParser,
Expand Down
3 changes: 1 addition & 2 deletions src/providers/movies/flixhq.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { load } from 'cheerio';
import { AxiosAdapter } from 'axios';

import {
MovieParser,
Expand All @@ -10,9 +9,9 @@ import {
ISource,
IMovieResult,
ISearch,
IByCountry,
} from '../../models';
import { MixDrop, VidCloud } from '../../extractors';
import { IByCountry } from '../../models/types';

class FlixHQ extends MovieParser {
override readonly name = 'FlixHQ';
Expand Down
2 changes: 1 addition & 1 deletion test/movies/flixhq.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ test('returns a filled object of streaming sources', async () => {

test('returns a filled object of movies/tv data by country', async () => {
const data = await flixhq.fetchByCountry('KR');
expect(data).not.toEqual([]);
expect(data.results).not.toEqual([]);
});

0 comments on commit a1dc526

Please sign in to comment.