mirror of
https://github.com/metabolist/metatext
synced 2025-01-06 15:20:11 +01:00
18 lines
348 B
Swift
18 lines
348 B
Swift
|
// Copyright © 2020 Metabolist. All rights reserved.
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
extension ContextEndpoint: Stubbing {
|
||
|
func dataString(url: URL) -> String? {
|
||
|
switch self {
|
||
|
case .context:
|
||
|
return """
|
||
|
{
|
||
|
"ancestors": [],
|
||
|
"descendants": []
|
||
|
}
|
||
|
"""
|
||
|
}
|
||
|
}
|
||
|
}
|