Skip to content

Commit

Permalink
Update test to match exact tracker (#2133)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1205237866452338/1205902260676401/f
Tech Design URL:
CC:

Description:

Update URL in tests to reflect latest blocking rules.
  • Loading branch information
bwaresiak authored Nov 8, 2023
1 parent 0f73f8a commit fbcd0d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IntegrationTests/ContentBlockingRulesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class ContentBlockingRulesTests: XCTestCase {
andTemporaryUnprotectedDomains: [])

// Test tracker is set up to be blocked
if let rule = rules.findExactFilter(filter: "^(https?)?(wss?)?://([a-z0-9-]+\\.)*googleadservices\\.com(:?[0-9]+)?/.*") {
if let rule = rules.findExactFilter(filter: "^(https?)?(wss?)?://([a-z0-9-]+\\.)*bad\\.third-party\\.site(:?[0-9]+)?/.*") {
XCTAssert(rule.action == .block())
} else {
XCTFail("Missing google ad services rule")
XCTFail("Missing tracking rule")
}

// Test exceptiions are set to ignore previous rules
Expand Down

0 comments on commit fbcd0d4

Please sign in to comment.