feat:mac os
This commit is contained in:
1 parent
136bf7cfa3
commit
3400e2b465
18 files changed
+1129
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import XCTest
|
||||
|
||||
@testable import Transui
|
||||
|
||||
final class TranscriptionClientTests: XCTestCase {
|
||||
func testAddsTranscriptionPath() {
|
||||
XCTAssertEqual(
|
||||
TranscriptionClient.endpointURL(from: "https://example.com/")?.absoluteString,
|
||||
"https://example.com/v1/audio/transcriptions"
|
||||
)
|
||||
}
|
||||
|
||||
func testKeepsFullTranscriptionPath() {
|
||||
XCTAssertEqual(
|
||||
TranscriptionClient.endpointURL(
|
||||
from: "https://example.com/v1/audio/transcriptions"
|
||||
)?.absoluteString,
|
||||
"https://example.com/v1/audio/transcriptions"
|
||||
)
|
||||
}
|
||||
|
||||
func testRejectsInvalidEndpoint() {
|
||||
XCTAssertNil(TranscriptionClient.endpointURL(from: ""))
|
||||
XCTAssertNil(TranscriptionClient.endpointURL(from: "example.com"))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user