mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +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")
|
||||
struct TimelineFilterTests {
|
||||
@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.tagGroup(title: "test", tags: ["test"], symbolName: nil),
|
||||
TimelineFilter.tagGroup(title: "test", tags: ["test"], symbolName: "test"),
|
||||
TimelineFilter.hashtag(tag: "test", accountId: nil),
|
||||
TimelineFilter.list(list: .init(id: "test", title: "test", repliesPolicy: .list, exclusive: true))])
|
||||
TimelineFilter.hashtag(tag: "test", accountId: nil)])
|
||||
func timelineCanEncodeAndDecode(filter: TimelineFilter) {
|
||||
#expect(testCodableOn(filter: filter))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue