1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
pub mod client;
pub mod lookup;
pub mod results;

#[cfg(test)]
mod tests {
    use crate::{
        sdk::{authentication::SecretKeyCredential, options::OptionsBuilder},
        us_enrichment_api::client::USEnrichmentClient,
    };

    #[test]
    fn client_test() {
        let options = OptionsBuilder::new()
            .authenticate(SecretKeyCredential::new("".to_string(), "".to_string()))
            .build()
            .unwrap();
        let client = USEnrichmentClient::new(options).unwrap();

        assert_eq!(
            client.client.url.to_string(),
            "https://us-enrichment.api.smarty.com/lookup".to_string()
        )
    }
}