Skip to content

Commit

Permalink
test: get url
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodie committed Aug 10, 2024
1 parent c0ffeec commit f7d20e0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,17 @@ mod tests {

use super::*;

#[test]
fn get_url() {
let url = "http://hoodie.de/";
let event = Event::new()
.url(url)
.done();
assert_eq!(event.get_url(), Some(url));
eprintln!("{}", event.to_string());
dbg!(event);
}

#[test]
fn get_properties_unset() {
let event = Event::new();
Expand Down

0 comments on commit f7d20e0

Please sign in to comment.