You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/ClientTests.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -406,7 +406,7 @@ class ClientTests: XCTestCase {
406
406
407
407
func testUserAgentHeader(){
408
408
// Test that the initial value of the header is correct.
409
-
XCTAssert(client.headers["User-Agent"]?.rangeOfString("^Algolia for Swift \\([0-9.]+\\)$", options:.RegularExpressionSearch)!=nil)
409
+
XCTAssert(client.headers["User-Agent"]?.rangeOfString("^Algolia for Swift \\([0-9.]+\\); (iOS|macOS|tvOS) \\([0-9.]+\\)$", options:.RegularExpressionSearch)!=nil)
410
410
411
411
// Test that changing the user agents results in a proper format.
0 commit comments