Skip to content

Commit

Permalink
Merge pull request #410 from ramsayleung/ramsay_add_test_for_collecti…
Browse files Browse the repository at this point in the history
…onyourepisodes
  • Loading branch information
ramsayleung authored May 15, 2023
2 parents 580c220 + 1e185dd commit 7b00487
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,3 +1127,19 @@ fn test_simplified_playlist() {
);
assert_eq!(simplified_playlist.tracks.total, 62);
}

#[test]
fn test_collectionyourepisodes_type() {
let json = r#"
{
"external_urls": {
"spotify": "https://open.spotify.com/collection/episodes"
},
"href": "https://api.spotify.com/v1/me/episodes",
"type": "collectionyourepisodes",
"uri": "spotify:user:<username>:collection:your-episodes"
}
"#;
let context: Context = deserialize(json);
assert_eq!(context._type, Type::Collectionyourepisodes);
}

0 comments on commit 7b00487

Please sign in to comment.