We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f763080 commit 7c8d598Copy full SHA for 7c8d598
1 file changed
components/ads-client/src/client/config.rs
@@ -78,4 +78,15 @@ mod tests {
78
assert_eq!(url.host(), Some(Host::Domain("ads.mozilla.org")));
79
assert_eq!(url.path(), "/v1/ads");
80
}
81
+
82
+ #[test]
83
+ fn staging_endpoint_parses_and_is_expected() {
84
+ let url = Environment::Staging.into_url("ads");
85
86
+ assert_eq!(url.as_str(), "https://ads.allizom.org/v1/ads");
87
88
+ assert_eq!(url.scheme(), "https");
89
+ assert_eq!(url.host(), Some(Host::Domain("ads.allizom.org")));
90
+ assert_eq!(url.path(), "/v1/ads");
91
+ }
92
0 commit comments