We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b97393 commit c069d67Copy full SHA for c069d67
Tests/MusadoraKitTests/Library/InFavoritesTests.swift
@@ -60,7 +60,7 @@ struct InFavoritesTests {
60
}
61
62
@Test
63
- func songNotInLibraryThrowsError() throws {
+ func songNotInLibraryReturnsFalse() throws {
64
let json = """
65
{
66
"data": [{
@@ -80,10 +80,9 @@ struct InFavoritesTests {
80
"""
81
82
let data = try #require(json.data(using: .utf8))
83
+ let inFavorites = try InFavoritesParser.parse(from: data, itemType: .songs)
84
- #expect(throws: MusadoraKitError.self) {
85
- try InFavoritesParser.parse(from: data, itemType: .songs)
86
- }
+ #expect(inFavorites == false)
87
88
89
// MARK: - Album Tests
0 commit comments