1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-12 01:16:46 +01:00
metatext-app-ios-iphone-ipad/MastodonAPI/Sources/MastodonAPIStubs/ContextEndpoint+Stubbing.swift
2020-09-03 18:55:46 -07:00

20 lines
390 B
Swift

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