-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
361 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`main api returns an object with methods 1`] = ` | ||
Object { | ||
"account": Object { | ||
"addToWatchlist": [Function], | ||
"details": [Function], | ||
"favoriteMovies": [Function], | ||
"favoriteTvShows": [Function], | ||
"lists": [Function], | ||
"markAsFavorite": [Function], | ||
"movieWatchlist": [Function], | ||
"ratedMovies": [Function], | ||
"ratedTvEpisodes": [Function], | ||
"ratedTvShows": [Function], | ||
"tvShowWatchlist": [Function], | ||
}, | ||
"authentication": Object { | ||
"logout": [Function], | ||
"newGuestSession": [Function], | ||
"newSession": [Function], | ||
"newToken": [Function], | ||
"sessionConvert": [Function], | ||
"validateWithLogin": [Function], | ||
}, | ||
"certification": Object { | ||
"movies": [Function], | ||
"tvShows": [Function], | ||
}, | ||
"change": Object { | ||
"movies": [Function], | ||
"people": [Function], | ||
"tvShows": [Function], | ||
}, | ||
"collection": Object { | ||
"details": [Function], | ||
"images": [Function], | ||
"translations": [Function], | ||
}, | ||
"company": Object { | ||
"alternativeNames": [Function], | ||
"details": [Function], | ||
"images": [Function], | ||
}, | ||
"configuration": Object { | ||
"api": [Function], | ||
"countries": [Function], | ||
"jobs": [Function], | ||
"languages": [Function], | ||
"primaryTranslations": [Function], | ||
"timezones": [Function], | ||
}, | ||
"credit": Object { | ||
"details": [Function], | ||
}, | ||
"discover": Object { | ||
"movie": [Function], | ||
"tvShows": [Function], | ||
}, | ||
"find": Object { | ||
"byId": [Function], | ||
}, | ||
"genre": Object { | ||
"movieList": [Function], | ||
"tvList": [Function], | ||
}, | ||
"guestSession": Object { | ||
"ratedMovies": [Function], | ||
"ratedTvEpisodes": [Function], | ||
"ratedTvShows": [Function], | ||
}, | ||
"keyword": Object { | ||
"details": [Function], | ||
"movies": [Function], | ||
}, | ||
"list": Object { | ||
"addMovie": [Function], | ||
"clear": [Function], | ||
"create": [Function], | ||
"details": [Function], | ||
"itemStatus": [Function], | ||
"remove": [Function], | ||
"removeMovie": [Function], | ||
}, | ||
"movie": Object { | ||
"accountStates": [Function], | ||
"alternativeTitles": [Function], | ||
"changes": [Function], | ||
"credits": [Function], | ||
"deleteRating": [Function], | ||
"details": [Function], | ||
"externalIds": [Function], | ||
"images": [Function], | ||
"keywords": [Function], | ||
"latest": [Function], | ||
"lists": [Function], | ||
"nowPlaying": [Function], | ||
"popular": [Function], | ||
"rate": [Function], | ||
"recommendations": [Function], | ||
"releaseDates": [Function], | ||
"reviews": [Function], | ||
"similar": [Function], | ||
"topRated": [Function], | ||
"translations": [Function], | ||
"upcoming": [Function], | ||
"videos": [Function], | ||
}, | ||
"network": Object { | ||
"alternativeNames": [Function], | ||
"details": [Function], | ||
"images": [Function], | ||
}, | ||
"people": Object { | ||
"changes": [Function], | ||
"combinedCredits": [Function], | ||
"details": [Function], | ||
"externalIds": [Function], | ||
"images": [Function], | ||
"latest": [Function], | ||
"movieCredits": [Function], | ||
"popular": [Function], | ||
"taggedImages": [Function], | ||
"translations": [Function], | ||
"tvCredits": [Function], | ||
}, | ||
"review": Object { | ||
"details": [Function], | ||
}, | ||
"search": Object { | ||
"collections": [Function], | ||
"companies": [Function], | ||
"keywords": [Function], | ||
"movies": [Function], | ||
"multi": [Function], | ||
"people": [Function], | ||
"tv": [Function], | ||
}, | ||
"trending": Object { | ||
"items": [Function], | ||
}, | ||
"tv": Object { | ||
"accountStates": [Function], | ||
"airingToday": [Function], | ||
"alternativeTitles": [Function], | ||
"changes": [Function], | ||
"contentRatings": [Function], | ||
"credits": [Function], | ||
"deleteRating": [Function], | ||
"details": [Function], | ||
"episodeGroups": [Function], | ||
"externalIds": [Function], | ||
"images": [Function], | ||
"keywords": [Function], | ||
"latest": [Function], | ||
"onTheAir": [Function], | ||
"popular": [Function], | ||
"rate": [Function], | ||
"recommendations": [Function], | ||
"reviews": [Function], | ||
"screenedTheatrically": [Function], | ||
"similar": [Function], | ||
"topRated": [Function], | ||
"translations": [Function], | ||
"videos": [Function], | ||
}, | ||
"tvEpisode": Object { | ||
"accountStates": [Function], | ||
"changes": [Function], | ||
"credits": [Function], | ||
"deleteRating": [Function], | ||
"details": [Function], | ||
"externalIds": [Function], | ||
"images": [Function], | ||
"rate": [Function], | ||
"translations": [Function], | ||
"videos": [Function], | ||
}, | ||
"tvEpisodeGroup": Object { | ||
"details": [Function], | ||
}, | ||
"tvSeason": Object { | ||
"accountStates": [Function], | ||
"changes": [Function], | ||
"credits": [Function], | ||
"details": [Function], | ||
"externalIds": [Function], | ||
"images": [Function], | ||
"videos": [Function], | ||
}, | ||
} | ||
`; | ||
|
||
exports[`main api returns an object with methods 2`] = ` | ||
Object { | ||
"account": Object { | ||
"favoriteMovies": [Function], | ||
"favoriteTvShows": [Function], | ||
"lists": [Function], | ||
"movieRecommendations": [Function], | ||
"movieWatchlist": [Function], | ||
"ratedMovies": [Function], | ||
"ratedTvShows": [Function], | ||
"tvShowRecommendations": [Function], | ||
"tvShowWatchlist": [Function], | ||
}, | ||
"authentication": Object { | ||
"createAccessToken": [Function], | ||
"createRequestToken": [Function], | ||
"deleteAccessToken": [Function], | ||
}, | ||
"list": Object { | ||
"addItems": [Function], | ||
"clearItems": [Function], | ||
"create": [Function], | ||
"deleteItems": [Function], | ||
"details": [Function], | ||
"itemStatus": [Function], | ||
"remove": [Function], | ||
"update": [Function], | ||
"updateItems": [Function], | ||
}, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`parser must parse correctly a mocked response 1`] = ` | ||
Object { | ||
"page": 1, | ||
"results": Array [ | ||
Object { | ||
"adult": false, | ||
"backdrop_path": "/VuukZLgaCrho2Ar8Scl9HtV3yD.jpg", | ||
"genre_ids": Array [ | ||
878, | ||
], | ||
"id": 335983, | ||
"original_language": "en", | ||
"original_title": "Venom", | ||
"overview": "When Eddie Brock acquires the powers of a symbiote, he will have to release his alter-ego \\"Venom\\" to save his life.", | ||
"popularity": 240.47, | ||
"poster_path": "/2uNW4WbgBXL25BAbXGLnLqX71Sw.jpg", | ||
"release_date": "2018-10-03", | ||
"title": "Venom", | ||
"video": false, | ||
"vote_average": 6.6, | ||
"vote_count": 2113, | ||
}, | ||
], | ||
"total_pages": 993, | ||
"total_results": 19847, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.