mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +00:00
19 lines
390 B
Swift
19 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": []
|
|
}
|
|
"""
|
|
}
|
|
}
|
|
}
|