metatext/Development Assets/Mastodon API Stubs/ContextEndpoint+Stubbing.swift
Justin Mazzocchi 7863866f68
Status contexts
2020-08-19 15:16:03 -07:00

17 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": []
}
"""
}
}
}