mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Cleanup
This commit is contained in:
parent
687e91e6ea
commit
f93105d2bf
9 changed files with 5 additions and 28 deletions
|
@ -1,3 +0,0 @@
|
|||
# Mastodon
|
||||
|
||||
A description of this package.
|
|
@ -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
|
||||
|
|
|
@ -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?
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class APIDecoder: JSONDecoder {
|
||||
public final class APIDecoder: JSONDecoder {
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public class APIEncoder: JSONEncoder {
|
||||
public final class APIEncoder: JSONEncoder {
|
||||
public override init() {
|
||||
super.init()
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
import XCTest
|
||||
|
||||
import MastodonTests
|
||||
|
||||
var tests = [XCTestCaseEntry]()
|
||||
tests += MastodonTests.allTests()
|
||||
XCTMain(tests)
|
|
@ -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)
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
import XCTest
|
||||
|
||||
#if !canImport(ObjectiveC)
|
||||
public func allTests() -> [XCTestCaseEntry] {
|
||||
return [
|
||||
testCase(MastodonTests.allTests)
|
||||
]
|
||||
}
|
||||
#endif
|
|
@ -3,6 +3,7 @@
|
|||
import XCTest
|
||||
import Combine
|
||||
import CombineExpectations
|
||||
import Mastodon
|
||||
@testable import Metatext
|
||||
|
||||
class AddIdentityViewModelTests: XCTestCase {
|
||||
|
|
Loading…
Reference in a new issue