Skip to content

Commit

Permalink
BIT-100 Adds method for loading json fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-livefront committed Sep 7, 2023
1 parent df6c2de commit d4e7f6d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ struct APITestData {
fatalError("Unable to load data from \(resource).\(`extension`) in the bundle. Error: \(error)")
}
}

static func loadFromJsonBundle(resource: String) -> APITestData {
loadFromBundle(resource: resource, extension: "json")
}
}

extension APITestData {
Expand Down

0 comments on commit d4e7f6d

Please sign in to comment.