metatext/Development Assets/Mastodon API Stubs/ContextEndpoint+Stubbing.swift
Justin Mazzocchi 9b59e2fbea
wip
2020-08-30 16:33:32 -07:00

18 lines
364 B
Swift

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