metatext-app-ios-iphone-ipad/MastodonAPI/Sources/MastodonAPIStubs/StringsEndpoint+Stubbing.swift

12 lines
261 B
Swift

// 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"])
}
}