diff --git a/README.MD b/README.MD index db5fda0..875c2d8 100644 --- a/README.MD +++ b/README.MD @@ -6,7 +6,8 @@ ## Overview -This Swift package is an API wrapper for the remove.bg API. It simplifies the integration of remove.bg's functionality into Swift-based projects, providing an easy and efficient way to access and utilize the API's capabilities. +This Swift package is an API wrapper for the [remove.bg](https://remove.bg) API. +It simplifies the integration of remove.bg's functionality into Swift-based projects, providing an easy and efficient way to access and utilize the API's capabilities. ## Features diff --git a/Tests/RemoveBgTests/Mocks/MockURLProtocol+XCTestCase.swift b/Tests/RemoveBgTests/Mocks/MockURLProtocol+XCTestCase.swift index d549311..96751f3 100644 --- a/Tests/RemoveBgTests/Mocks/MockURLProtocol+XCTestCase.swift +++ b/Tests/RemoveBgTests/Mocks/MockURLProtocol+XCTestCase.swift @@ -28,7 +28,7 @@ func XCTAssertHeader(key: String, value: String, file: StaticString = #filePath, XCTAssertEqual(value, lastRequest.allHTTPHeaderFields?[key], file: file, line: line) } -func XCTAssertHeader(key: String, value: Regex, file: StaticString = #filePath, line: UInt = #line) { +func XCTAssertHeader(key: String, value: Regex, file: StaticString = #filePath, line: UInt = #line) { guard let lastRequest = MockURLProtocol.lastRequest else { XCTFail("No URLRequest recorded", file: file, line: line) return diff --git a/Tests/RemoveBgTests/RemoveBgTests.swift b/Tests/RemoveBgTests/RemoveBgTests.swift index 9e666ba..689c847 100644 --- a/Tests/RemoveBgTests/RemoveBgTests.swift +++ b/Tests/RemoveBgTests/RemoveBgTests.swift @@ -19,7 +19,7 @@ final class RemoveBgParametersTests: XCTestCase { func testContentType() async throws { let _ = try await client.removeBackground(fromFileAtUrl: .sampleImage) - let regex = try Regex("^multipart/form-data; boundary=.+$") + let regex = #/^multipart/form-data; boundary=.+$/# XCTAssertHeader(key: "Content-Type", value: regex) }