mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 17:51:01 +00:00
Fix tests
This commit is contained in:
parent
6297a428a3
commit
8f7df06d21
1 changed files with 4 additions and 3 deletions
|
@ -7,12 +7,13 @@ import Foundation
|
||||||
@Suite("Timeline Filter Tests")
|
@Suite("Timeline Filter Tests")
|
||||||
struct TimelineFilterTests {
|
struct TimelineFilterTests {
|
||||||
@Test("All timeline filter can be decoded and encoded",
|
@Test("All timeline filter can be decoded and encoded",
|
||||||
arguments: [TimelineFilter.home, TimelineFilter.local, TimelineFilter.federated,
|
arguments: [TimelineFilter.home,
|
||||||
|
TimelineFilter.local,
|
||||||
|
TimelineFilter.federated,
|
||||||
TimelineFilter.remoteLocal(server: "me.dm", filter: .local),
|
TimelineFilter.remoteLocal(server: "me.dm", filter: .local),
|
||||||
TimelineFilter.tagGroup(title: "test", tags: ["test"], symbolName: nil),
|
TimelineFilter.tagGroup(title: "test", tags: ["test"], symbolName: nil),
|
||||||
TimelineFilter.tagGroup(title: "test", tags: ["test"], symbolName: "test"),
|
TimelineFilter.tagGroup(title: "test", tags: ["test"], symbolName: "test"),
|
||||||
TimelineFilter.hashtag(tag: "test", accountId: nil),
|
TimelineFilter.hashtag(tag: "test", accountId: nil)])
|
||||||
TimelineFilter.list(list: .init(id: "test", title: "test", repliesPolicy: .list, exclusive: true))])
|
|
||||||
func timelineCanEncodeAndDecode(filter: TimelineFilter) {
|
func timelineCanEncodeAndDecode(filter: TimelineFilter) {
|
||||||
#expect(testCodableOn(filter: filter))
|
#expect(testCodableOn(filter: filter))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue