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 {