From c73216f9a3ed4b4fde23cbc9d837b1cbe886053a Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 26 May 2026 11:40:38 -0500 Subject: [PATCH 1/2] replace references with prospect a --- crates/trusted-server-core/src/html_processor.test.html | 4 ++-- .../trusted-server-core/src/integrations/sourcepoint.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/trusted-server-core/src/html_processor.test.html b/crates/trusted-server-core/src/html_processor.test.html index 2bbc2b96..d05a4518 100644 --- a/crates/trusted-server-core/src/html_processor.test.html +++ b/crates/trusted-server-core/src/html_processor.test.html @@ -5,7 +5,7 @@ link.href = 'https://use.typekit.net/rla3irf.css'; document.head.appendChild(link); })(); - Skip to main content

Mercedes CEO Slams Combustion Ban, Calls For “Reality Check”

If new rules go into effect as planned, the Mercedes boss says the European car market could “collapse.”

Mercedes
\ No newline at end of file +

About the Author

Sebastian Cenizo

diff --git a/crates/trusted-server-core/src/integrations/sourcepoint.rs b/crates/trusted-server-core/src/integrations/sourcepoint.rs index a911b5d5..c27ee1ee 100644 --- a/crates/trusted-server-core/src/integrations/sourcepoint.rs +++ b/crates/trusted-server-core/src/integrations/sourcepoint.rs @@ -1073,9 +1073,9 @@ mod tests { let integration = SourcepointIntegration::new(Arc::new(config(true))); let document_state = IntegrationDocumentState::default(); let ctx = IntegrationHtmlContext { - request_host: "ts.autoblog.com", + request_host: "ts.prospecta.com", request_scheme: "https", - origin_host: "origin.autoblog.com", + origin_host: "origin.prospecta.com", document_state: &document_state, }; @@ -1136,9 +1136,9 @@ mod tests { let integration = SourcepointIntegration::new(Arc::new(cfg)); let document_state = IntegrationDocumentState::default(); let ctx = IntegrationHtmlContext { - request_host: "ts.autoblog.com", + request_host: "ts.prospecta.com", request_scheme: "https", - origin_host: "origin.autoblog.com", + origin_host: "origin.prospecta.com", document_state: &document_state, }; From d1acaa802979fbfa47031346afa49be412693a41 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 28 May 2026 14:07:56 -0500 Subject: [PATCH 2/2] Allow publisher HTML tests to preserve trailing whitespace --- .../trusted-server-core/src/html_processor.rs | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/crates/trusted-server-core/src/html_processor.rs b/crates/trusted-server-core/src/html_processor.rs index a201a59d..1c7c0397 100644 --- a/crates/trusted-server-core/src/html_processor.rs +++ b/crates/trusted-server-core/src/html_processor.rs @@ -776,8 +776,14 @@ mod tests { ); // Verify HTML structure - assert_eq!(&result[0..15], ""); - assert_eq!(&result[result.len() - 7..], ""); + assert!( + result.starts_with(""), + "Should preserve doctype" + ); + assert!( + result.trim_end().ends_with(""), + "Should preserve closing html tag" + ); // Verify content preservation assert!( @@ -907,8 +913,14 @@ mod tests { ); // Verify structure - assert_eq!(&decompressed[0..15], ""); - assert_eq!(&decompressed[decompressed.len() - 7..], ""); + assert!( + decompressed.starts_with(""), + "Should preserve doctype" + ); + assert!( + decompressed.trim_end().ends_with(""), + "Should preserve closing html tag" + ); // Verify content preservation assert!(