1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-26 17:52:26 +01:00
This commit is contained in:
Justin Mazzocchi 2020-08-30 17:18:19 -07:00
parent 687e91e6ea
commit f93105d2bf
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
9 changed files with 5 additions and 28 deletions

View File

@ -1,3 +0,0 @@
# Mastodon
A description of this package.

View File

@ -2,7 +2,7 @@
import Foundation
public class Status: Codable, Identifiable {
public final class Status: Codable, Identifiable {
public enum Visibility: String, Codable, Unknowable {
case `public`
case unlisted

View File

@ -3,7 +3,7 @@
import Foundation
import Combine
public class APIClient: HTTPClient {
public final class APIClient: HTTPClient {
public var instanceURL: URL?
public var accessToken: String?

View File

@ -2,7 +2,7 @@
import Foundation
public class APIDecoder: JSONDecoder {
public final class APIDecoder: JSONDecoder {
public override init() {
super.init()

View File

@ -2,7 +2,7 @@
import Foundation
public class APIEncoder: JSONEncoder {
public final class APIEncoder: JSONEncoder {
public override init() {
super.init()

View File

@ -1,7 +0,0 @@
import XCTest
import MastodonTests
var tests = [XCTestCaseEntry]()
tests += MastodonTests.allTests()
XCTMain(tests)

View File

@ -6,10 +6,5 @@ final class MastodonTests: XCTestCase {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(Mastodon().text, "Hello, World!")
}
static var allTests = [
("testExample", testExample)
]
}

View File

@ -1,9 +0,0 @@
import XCTest
#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(MastodonTests.allTests)
]
}
#endif

View File

@ -3,6 +3,7 @@
import XCTest
import Combine
import CombineExpectations
import Mastodon
@testable import Metatext
class AddIdentityViewModelTests: XCTestCase {