metatext/Development Assets/Mastodon API Stubs/ContextEndpoint+Stubbing.swift

18 lines
348 B
Swift
Raw Normal View History

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