metatext/MastodonAPI/Sources/MastodonAPIStubs/StringsEndpoint+Stubbing.swift
Justin Mazzocchi 43e58bce35
Domain blocks
2020-12-03 19:13:18 -08:00

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