Skip to content

Commit

Permalink
fix: remote equals method in ClickstreamEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoweii committed Dec 15, 2023
1 parent 5b921d2 commit 049cccc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ class ClickstreamEvent: AnalyticsPropertiesModel {
}
return attribute
}

static func == (lhs: ClickstreamEvent, rhs: ClickstreamEvent) -> Bool {
lhs.toJsonObject().toJsonString() == rhs.toJsonObject().toJsonString()
}
}

// MARK: - ClickstreamLogger
Expand Down
11 changes: 0 additions & 11 deletions Tests/ClickstreamTests/Clickstream/ClickstreamEventTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,4 @@ class ClickstreamEventTest: XCTestCase {
XCTAssertTrue(errorValueString.contains(ClickstreamAnalytics.Item.ITEM_NAME))
XCTAssertEqual(0, clickstreamEvent.items.count)
}

func testEventEqualsFail() {
let event1 = clickstreamEvent!
let event2 = ClickstreamEvent(eventType: "testEvent",
appId: testAppId,
uniqueId: UUID().uuidString,
session: Session(uniqueId: UUID().uuidString, sessionIndex: 1),
systemInfo: SystemInfo(storage: storage),
netWorkType: NetWorkType.Wifi)
XCTAssertFalse(event1 == event2)
}
}

0 comments on commit 049cccc

Please sign in to comment.