blob: 1caedea17e331414a96e3e1923c21a5af825779e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import Foundation
import Testing
@testable import Hutch
struct TrackerListViewModelTests {
@Test
@MainActor
func graphQLErrorDescriptionIsPreservedForTrackerCreationFailures() {
let error = SRHTError.graphQLErrors([
GraphQLError(message: "A tracker named bugs already exists", locations: nil)
])
#expect(error.localizedDescription == "GraphQL error: A tracker named bugs already exists")
}
}
|