@@ -15,10 +15,8 @@ import DatadogInternal
15
15
@testable import DatadogWebViewTracking
16
16
17
17
class WebLogIntegrationTests : XCTestCase {
18
- // swiftlint:disable implicitly_unwrapped_optional
19
18
private var core : DatadogCoreProxy ! // swiftlint:disable:this implicitly_unwrapped_optional
20
- private var controller : WKUserContentControllerMock !
21
- // swiftlint:enable implicitly_unwrapped_optional
19
+ private var controller : WKUserContentControllerMock ! // swiftlint:disable:this implicitly_unwrapped_optional
22
20
23
21
override func setUp( ) {
24
22
core = DatadogCoreProxy (
@@ -54,7 +52,7 @@ class WebLogIntegrationTests: XCTestCase {
54
52
{
55
53
" eventType " : " log " ,
56
54
" event " : {
57
- " date " : \( 1635932927012 ) ,
55
+ " date " : \( 1_635_932_927_012 ) ,
58
56
" status " : " debug " ,
59
57
" message " : " message " ,
60
58
" session_id " : " 0110cab4-7471-480e-aa4e-7ce039ced355 " ,
@@ -72,7 +70,8 @@ class WebLogIntegrationTests: XCTestCase {
72
70
73
71
// Then
74
72
let logMatcher = try XCTUnwrap ( core. waitAndReturnLogMatchers ( ) . first)
75
- try logMatcher. assertItFullyMatches ( jsonString: """
73
+ try logMatcher. assertItFullyMatches (
74
+ jsonString: """
76
75
{
77
76
" date " : \( 1_635_932_927_012 + 123 . toInt64Milliseconds) ,
78
77
" ddtags " : " version:1.1.1,env:test " ,
@@ -92,7 +91,7 @@ class WebLogIntegrationTests: XCTestCase {
92
91
// Given
93
92
let randomApplicationID : String = . mockRandom( )
94
93
let randomUUID : UUID = . mockRandom( )
95
-
94
+
96
95
Logs . enable ( in: core)
97
96
RUM . enable ( with: . mockWith( applicationID: randomApplicationID) {
98
97
$0. uuidGenerator = RUMUUIDGeneratorMock ( uuid: randomUUID)
@@ -102,7 +101,7 @@ class WebLogIntegrationTests: XCTestCase {
102
101
{
103
102
" eventType " : " log " ,
104
103
" event " : {
105
- " date " : \( 1635932927012 ) ,
104
+ " date " : \( 1_635_932_927_012 ) ,
106
105
" status " : " debug " ,
107
106
" message " : " message " ,
108
107
" session_id " : " 0110cab4-7471-480e-aa4e-7ce039ced355 " ,
@@ -122,7 +121,8 @@ class WebLogIntegrationTests: XCTestCase {
122
121
// Then
123
122
let expectedUUID = randomUUID. uuidString. lowercased ( )
124
123
let logMatcher = try XCTUnwrap ( core. waitAndReturnLogMatchers ( ) . first)
125
- try logMatcher. assertItFullyMatches ( jsonString: """
124
+ try logMatcher. assertItFullyMatches (
125
+ jsonString: """
126
126
{
127
127
" date " : \( 1_635_932_927_012 + 123 . toInt64Milliseconds) ,
128
128
" ddtags " : " version:1.1.1,env:test " ,
0 commit comments