Skip to content

Commit

Permalink
chore: fix the failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
SKannaniOS committed Nov 7, 2024
1 parent f9392f7 commit 443f7e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/ContextTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,13 @@ class ContextTests: XCTestCase {
}

func test_putAdvertisementId() {
context.putAdvertisementId("00000000-0000-0000-0000-000000000000")
XCTAssertEqual(context.device.advertisingId, "");
XCTAssertFalse(context.device.adTrackingEnabled)
context.putAdvertisementId("some-random-uuid");
XCTAssertEqual(context.device.advertisingId, "some-random-uuid");
XCTAssertTrue(context.device.adTrackingEnabled)

context.putAdvertisementId("00000000-0000-0000-0000-000000000000")
XCTAssertEqual(context.device.advertisingId, "some-random-uuid");
XCTAssertTrue(context.device.adTrackingEnabled)
}

func test_updateExternalIds() {
Expand Down

0 comments on commit 443f7e6

Please sign in to comment.