Modified tests to reflect additions in the macros
This commit is contained in:
13
tests/tests_paragraphs.rs
Normal file
13
tests/tests_paragraphs.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use web_macro::paragraph;
|
||||
#[test]
|
||||
fn test_base() {
|
||||
assert_eq!("<p>test</p>", paragraph!("test"))
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_params() {
|
||||
assert_eq!("<p id=\"oui\">test</p>", paragraph!("test", id = "oui"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user