metatext/MastodonAPI/Sources/MastodonAPIStubs/StringsEndpoint+Stubbing.swift

12 lines
261 B
Swift
Raw Normal View History

2020-12-04 03:13:18 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import MastodonAPI
import Stubbing
extension StringsEndpoint: Stubbing {
public func data(url: URL) -> Data? {
try? JSONSerialization.data(withJSONObject: ["ok.lol"])
}
}