Skip to content

Commit

Permalink
fix explicit type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Dec 15, 2024
1 parent 4561198 commit 903d074
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Tests/SentryTests/Protocol/SentrySdkInfoTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,23 @@ class SentrySdkInfoTests: XCTestCase {
let version = "10.3.1"
let expected = SentrySdkInfo(name: sdkName, version: version, integrations: ["a"], features: ["b"])

let dict = [ "name": sdkName, "version": version, "integrations": [0, [], "a", [:]], "features": [0, [], "b", [:]]] as [String: Any]
let dict = [
"name": sdkName,
"version": version,
"integrations":
[
0,
[] as [Any],
"a",
[:] as [String: Any]
] as [Any],
"features": [
0,
[] as [Any],
"b",
[:] as [String: Any]
] as [Any]
] as [String: Any]

XCTAssertEqual(expected, SentrySdkInfo(dict: dict))
}
Expand Down

0 comments on commit 903d074

Please sign in to comment.