2020-08-20 00:16:03 +02:00
|
|
|
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
|
|
|
|
import Foundation
|
2020-09-04 03:55:46 +02:00
|
|
|
import MastodonAPI
|
2020-08-31 12:21:01 +02:00
|
|
|
import Stubbing
|
2020-08-20 00:16:03 +02:00
|
|
|
|
|
|
|
extension ContextEndpoint: Stubbing {
|
2020-08-31 12:21:01 +02:00
|
|
|
public func dataString(url: URL) -> String? {
|
2020-08-20 00:16:03 +02:00
|
|
|
switch self {
|
|
|
|
case .context:
|
|
|
|
return """
|
|
|
|
{
|
|
|
|
"ancestors": [],
|
|
|
|
"descendants": []
|
|
|
|
}
|
|
|
|
"""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|