fix: tests
This commit is contained in:
@@ -545,3 +545,81 @@ The pages of Grimms' Fairy Tales, written by Jacob and Wilhelm, are now presente
|
||||
"success": true,
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`requests the "/title" route with a valid id & token 1`] = `
|
||||
{
|
||||
"result": {
|
||||
"averageScore": 66,
|
||||
"bannerImage": "https://s4.anilist.co/file/anilistcdn/media/anime/banner/135643-cmQZCR3z9dB5.jpg",
|
||||
"countryOfOrigin": "JP",
|
||||
"coverImage": {
|
||||
"extraLarge": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/large/bx135643-2kJt86K9Db9P.jpg",
|
||||
"large": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/bx135643-2kJt86K9Db9P.jpg",
|
||||
"medium": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/small/bx135643-2kJt86K9Db9P.jpg",
|
||||
},
|
||||
"description":
|
||||
"Once upon a time, brothers Jacob and Wilhelm collected fairy tales from across the land and made them into a book. They also had a much younger sister, the innocent and curious Charlotte, who they loved very much. One day, while the brothers were telling Charlotte a fairy tale like usual, they saw that she had a somewhat melancholy look on her face. She asked them, "Do you suppose they really lived happily ever after?"
|
||||
<br><br>
|
||||
The pages of Grimms' Fairy Tales, written by Jacob and Wilhelm, are now presented from the unique perspective of Charlotte, who sees the stories quite differently from her brothers.
|
||||
<br><br>
|
||||
(Source: Netflix Anime)"
|
||||
,
|
||||
"episodes": 6,
|
||||
"genres": [
|
||||
"Fantasy",
|
||||
"Thriller",
|
||||
],
|
||||
"id": 135643,
|
||||
"idMal": 49210,
|
||||
"mediaListEntry": {
|
||||
"id": 402665918,
|
||||
"progress": 1,
|
||||
"status": "CURRENT",
|
||||
},
|
||||
"nextAiringEpisode": null,
|
||||
"status": "FINISHED",
|
||||
"title": {
|
||||
"english": "The Grimm Variations",
|
||||
"userPreferred": "The Grimm Variations",
|
||||
},
|
||||
},
|
||||
"success": true,
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`requests the "/title" route with a valid id but no token 1`] = `
|
||||
{
|
||||
"result": {
|
||||
"averageScore": 66,
|
||||
"bannerImage": "https://s4.anilist.co/file/anilistcdn/media/anime/banner/135643-cmQZCR3z9dB5.jpg",
|
||||
"countryOfOrigin": "JP",
|
||||
"coverImage": {
|
||||
"extraLarge": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/large/bx135643-2kJt86K9Db9P.jpg",
|
||||
"large": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/medium/bx135643-2kJt86K9Db9P.jpg",
|
||||
"medium": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/small/bx135643-2kJt86K9Db9P.jpg",
|
||||
},
|
||||
"description":
|
||||
"Once upon a time, brothers Jacob and Wilhelm collected fairy tales from across the land and made them into a book. They also had a much younger sister, the innocent and curious Charlotte, who they loved very much. One day, while the brothers were telling Charlotte a fairy tale like usual, they saw that she had a somewhat melancholy look on her face. She asked them, "Do you suppose they really lived happily ever after?"
|
||||
<br><br>
|
||||
The pages of Grimms' Fairy Tales, written by Jacob and Wilhelm, are now presented from the unique perspective of Charlotte, who sees the stories quite differently from her brothers.
|
||||
<br><br>
|
||||
(Source: Netflix Anime)"
|
||||
,
|
||||
"episodes": 6,
|
||||
"genres": [
|
||||
"Fantasy",
|
||||
"Thriller",
|
||||
],
|
||||
"id": 135643,
|
||||
"idMal": 49210,
|
||||
"mediaListEntry": null,
|
||||
"nextAiringEpisode": null,
|
||||
"status": "FINISHED",
|
||||
"title": {
|
||||
"english": "The Grimm Variations",
|
||||
"userPreferred": "The Grimm Variations",
|
||||
},
|
||||
},
|
||||
"success": true,
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user