metatext/Mastodon/Sources/MastodonStubs/ContextEndpoint+Stubbing.swift
Justin Mazzocchi 5f96f59ac3
wip
2020-08-31 03:21:01 -07:00

19 lines
387 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import Mastodon
import Stubbing
extension ContextEndpoint: Stubbing {
public func dataString(url: URL) -> String? {
switch self {
case .context:
return """
{
"ancestors": [],
"descendants": []
}
"""
}
}
}